Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bench_cg.py fails with NVRTC Error #199

Open
tvandera opened this issue Dec 21, 2018 · 3 comments
Open

bench_cg.py fails with NVRTC Error #199

tvandera opened this issue Dec 21, 2018 · 3 comments

Comments

@tvandera
Copy link

Running bench_cg. py from the examples, gives me this error:

python bench_cg.py
ArrayFire v3.6.2 (CUDA, 64-bit Linux, build dc38ef1)
Platform: CUDA Toolkit 10, Driver: 410.79
[0] Tesla K80, 11442 MB, CUDA Compute 3.7
-1- Tesla K80, 11442 MB, CUDA Compute 3.7
-2- Tesla K80, 11442 MB, CUDA Compute 3.7
-3- Tesla K80, 11442 MB, CUDA Compute 3.7

Testing benchmark functions...
Traceback (most recent call last):
  File "bench_cg.py", line 197, in <module>
    test()
  File "bench_cg.py", line 144, in test
    if af.sum(af.abs(x1 - x2)/x2 > 1e-6):
  File "/home/vanderaa/miniconda3/envs/arrayfire/lib/python3.7/site-packages/arrayfire/array.py", line 894, in __truediv__
    return _binary_func(self, other, backend.get().af_div)
  File "/home/vanderaa/miniconda3/envs/arrayfire/lib/python3.7/site-packages/arrayfire/array.py", line 175, in _binary_func
    safe_call(c_func(c_pointer(out.arr), lhs.arr, other.arr, _bcast_var.get()))
  File "/home/vanderaa/miniconda3/envs/arrayfire/lib/python3.7/site-packages/arrayfire/util.py", line 79, in safe_call
    raise RuntimeError(to_str(err_str))
RuntimeError: In function std::vector<char> cuda::compileToPTX(const char*, std::string)
In file src/backend/cuda/jit.cpp:298
NVRTC Error(6): NVRTC_ERROR_COMPILATION

System: Linux K80 4.15.0-1035-azure #36~16.04.1-Ubuntu SMP Fri Nov 30 15:25:49 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
python --version:
Python 3.7.1

$pip  show arrayfire
Name: arrayfire
Version: 3.6.20181017
Summary: Python bindings for ArrayFire
Home-page: http://arrayfire.com
Author: Pavan Yalamanchili
Author-email: [email protected]
License: BSD
Location: /mnt/vanderaa/miniconda3/envs/arrayfire/lib/python3.7/site-packages
Requires:
Required-by:
@pavanky
Copy link
Member

pavanky commented Dec 21, 2018

@umar456 I thought this was fixed on 3.6 ?

@umar456
Copy link
Member

umar456 commented Dec 21, 2018

Yeah, thats what I thought. I haven't looked at this yet. Will get to it later today.

@tvandera
Copy link
Author

tvandera commented Jan 2, 2019

Hi Guys,

I have the same issue in some of my own codes. How do I at least get a more meaningful error message, such that I know that the code to be JITed it too big??

thanks,
Tom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants