question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

<unnamed> (81, 19): parse expected comma after load's type

See original GitHub issue

Reporting a bug

Im getting an error like pasted below while trying to run the most basic example taken from official WWW: https://developer.nvidia.com/blog/numba-python-cuda-acceleration/

import numpy as np
from numba import vectorize

@vectorize(['float32(float32, float32)'], target='cuda')
def Add(a, b):
  return a + b

N = 100000
A = np.ones(N, dtype=np.float32)
B = np.ones(A.shape, dtype=A.dtype)
C = np.empty_like(A, dtype=A.dtype)

C = Add(A, B)

Ubuntu 18.04.5, Numpy 1.19.4, Numba 0.52.0, kernel 5.4.58-050458-generic, CUDA 11.2.0, NVIDIA driver 460.27.04, GeForce GTX 1660

Traceback (most recent call last): File “GPUtest.py”, line 13, in <module> C = Add(A, B) File “/usr/local/lib/python3.6/dist-packages/numba/cuda/dispatcher.py”, line 37, in call return CUDAUFuncMechanism.call(self.functions, args, kws) File “/usr/local/lib/python3.6/dist-packages/numba/np/ufunc/deviceufunc.py”, line 300, in call cr.launch(func, shape[0], stream, devarys) File “/usr/local/lib/python3.6/dist-packages/numba/cuda/dispatcher.py”, line 148, in launch func.forall(count, stream=stream)(*args) File “/usr/local/lib/python3.6/dist-packages/numba/cuda/compiler.py”, line 372, in call kernel = self.kernel.specialize(*args) File “/usr/local/lib/python3.6/dist-packages/numba/cuda/compiler.py”, line 899, in specialize self._bind, targetoptions) File “/usr/local/lib/python3.6/dist-packages/numba/cuda/compiler.py”, line 811, in init self.compile(sigs[0]) File “/usr/local/lib/python3.6/dist-packages/numba/cuda/compiler.py”, line 952, in compile kernel.bind() File “/usr/local/lib/python3.6/dist-packages/numba/cuda/compiler.py”, line 576, in bind self._func.get() File “/usr/local/lib/python3.6/dist-packages/numba/cuda/compiler.py”, line 446, in get ptx = self.ptx.get() File “/usr/local/lib/python3.6/dist-packages/numba/cuda/compiler.py”, line 416, in get **self._extra_options) File “/usr/local/lib/python3.6/dist-packages/numba/cuda/cudadrv/nvvm.py”, line 548, in llvm_to_ptx ptx = cu.compile(**opts) File “/usr/local/lib/python3.6/dist-packages/numba/cuda/cudadrv/nvvm.py”, line 236, in compile self._try_error(err, ‘Failed to compile\n’) File “/usr/local/lib/python3.6/dist-packages/numba/cuda/cudadrv/nvvm.py”, line 254, in _try_error self.driver.check_error(err, “%s\n%s” % (msg, self.get_log())) File “/usr/local/lib/python3.6/dist-packages/numba/cuda/cudadrv/nvvm.py”, line 144, in check_error raise exc numba.cuda.cudadrv.error.NvvmError: Failed to compile

<unnamed> (81, 19): parse expected comma after load’s type NVVM_ERROR_COMPILATION

Is some default behavior changed and broke the decorator?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
stuartarchibaldcommented, Jan 5, 2021

@stuartarchibald What is the latest CUDA we can use currently?

@AlexKurek I think it’s anything supported and <11.2, so 11.1.x would be the last compatible. We are aware of the issues and there’s work ongoing to provide 11.2+ support.

3reactions
AlyShmahellcommented, Jan 5, 2021

@AlexKurek yes it worked after downgrading to the following:

  • cuda version 10.1
  • llvmlite==0.31
  • numba==0.48
Read more comments on GitHub >

github_iconTop Results From Across the Web

parse expected comma after load's type ... - Google Groups
I am getting this error, when trying to runa GPU sample code cuda1.py. \AppData\Local\Programs\Python\Python38\lib\site-packages\numba\cuda ...
Read more >
How to fix "error: expected comma after load's type"
The syntax of the load instruction was changed in LLVM 3.7. You now need to pass the type of the loaded value, like...
Read more >
IO tools (text, CSV, HDF5, …) — pandas 1.5.2 documentation
The Python engine loads the data first before deciding which columns to drop. ... Lines with too many fields (e.g. a csv line...
Read more >
Python Tutorial - Getting Started with Python and Python Basics
This example illustrates the basic Python syntaxes and constructs, such as comment, statement, block indentation, conditional if-else , for -loop, while -loop, ...
Read more >
2 Server Error Message Reference - MySQL :: Developer Zone
Message: The used table type doesn't support AUTO_INCREMENT columns ... Message: Can't load value from file with fixed size rows to variable.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found