Hi all,
I am getting this error, when trying to runa GPU sample code cuda1.py.
\AppData\Local\Programs\Python\Python38\lib\site-packages\numba\cuda\cudadrv\nvvm.py", line 144, in check_error
raise exc
numba.cuda.cudadrv.error.NvvmError: Failed to compile
<unnamed> (44, 19): parse expected comma after load's type
NVVM_ERROR_COMPILATION
Same is working with Jupyter.
Here is the sample cuda1.py -
from __future__ import division
from numba import cuda
import numpy
import math
# CUDA kernel
@cuda.jit
def my_kernel(io_array):
pos = cuda.grid(1)
if pos < io_array.size:
io_array[pos] *= 2 # do the computation
# Host code
data = numpy.ones(256)
threadsperblock = 256
blockspergrid = math.ceil(data.shape[0] / threadsperblock)
my_kernel[blockspergrid, threadsperblock](data)
print(data)