parse expected comma after load's type NVVM_ERROR_COMPILATION

376 views
Skip to first unread message

Sushil Mahajan

unread,
Feb 9, 2021, 9:44:40 AM2/9/21
to Numba Public Discussion - Public
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)


Valentin Haenel

unread,
Feb 9, 2021, 10:52:22 AM2/9/21
to numba...@continuum.io, sushil....@edcast.com
Hi Sushil,

thank you for asking about this, but this mailinglist is no longer in use. Please open a ticket on the Numba issue tracker instead: https://github.com/numba/numba/issues

Thank you!

V-

--
You received this message because you are subscribed to the Google Groups "Numba Public Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to numba-users...@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/numba-users/d5450c28-80e5-432a-911a-843f43290e9bn%40continuum.io.
Reply all
Reply to author
Forward
0 new messages