numba: TypeError: compile_kernel() got an unexpected keyword argument 'boundscheck'
Hi, I am quite new to numba and was trying to play with it. Thus, I was trying to run the following simple example:
from numba import jit, cuda
import numpy as np
import os
# function optimized to run on gpu
@jit(target ='cuda')
def func2(a):
for i in range(10000000):
a[i]+= 1
if __name__ == '__main__':
n = 10000000
a = np.ones(n, dtype=np.float64)
b = np.ones(n, dtype=np.float32)
func2(a)
os._exit(0)
but for some reason I am getting the TypeError:
TypeError: compile_kernel() got an unexpected keyword argument 'boundscheck'
I checked on the web for similar issues but I did not really found anything relevant. Any idea what might be wrong.
Thanks.
System info: Python 3.8 Windows 10 Numba 0.50
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15 (9 by maintainers)
Closing this as
@jit(target=)is now deprecated.