这是报错:
TypeError: No matching version. GPU ufunc requires array arguments to have the exact types. This behaves like regular ufunc with casting='no'.
最近刚刚CUDA,接触我的卡是GeForce1050, CUDA Toolkit9.0版本,已经用conda安装了numba。下面是我的程序(python)
from numba import vectorize, int16
import numpy as np
a=np.arange(4)
b=np.arange(4)
@vectorize(['int16(int16, int16)'], target='cuda')
def add__ufunc(x, y)_:
return x + y
a'd'd_ufunc(b,a)
绝望中。。。。。