error: TypeError: No matching version. GPU ufunc requires array arguments to have the exact types. This behaves like regular ufunc with casting='no'.

33 views
Skip to first unread message

Brian Bak

unread,
May 22, 2020, 4:56:24 PM5/22/20
to Numba Public Discussion - Public
Hi 

I am just started looking into numba's GPU capabilities. To test if my system (thinkpad p43s with win 10) support it I have tried running the notebook https://github.com/ContinuumIO/gtc2018-numba --> CUDA Basics.ipynb from the suggested tutorials (http://numba.pydata.org/numba-doc/latest/user/talks.html#tutorials) in a new anaconda environment with python 3.7 numba, cudatoolkit, and jupyter and the same but with python 3.8. I get and error when executing this part of the notebook: 

import numpy as np

a = np.array([1, 2, 3, 4])
b = np.array([10, 20, 30, 40])

np.add(a, b)

from numba import vectorize

@vectorize(['int64(int64, int64)'], target='cuda')
def add_ufunc(x, y):
    return x + y

print('a+b:\n', add_ufunc(a, b))
print()
print('b_col + c:\n', add_ufunc(b_col, c))


I receive this error:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-4-e9c2e3542d98> in <module>
----> 1 print('a+b:\n', add_ufunc(a, b))
      2 print()
      3 print('b_col + c:\n', add_ufunc(b_col, c))

~\AppData\Local\Continuum\anaconda3\lib\site-packages\numba\cuda\dispatcher.py in __call__(self, *args, **kws)
     86                       the input arguments.
     87         """
---> 88         return CUDAUFuncMechanism.call(self.functions, args, kws)
     89 
     90     def reduce(self, arg, stream=0):

~\AppData\Local\Continuum\anaconda3\lib\site-packages\numba\npyufunc\deviceufunc.py in call(cls, typemap, args, kws)
    255         # Begin call resolution
    256         cr = cls(typemap, args)
--> 257         args = cr.get_arguments()
    258         resty, func = cr.get_function()
    259 

~\AppData\Local\Continuum\anaconda3\lib\site-packages\numba\npyufunc\deviceufunc.py in get_arguments(self)
    205         self._fill_arrays()
    206         self._fill_argtypes()
--> 207         self._resolve_signature()
    208         arys = self._get_actual_args()
    209         return self._broadcast(arys)

~\AppData\Local\Continuum\anaconda3\lib\site-packages\numba\npyufunc\deviceufunc.py in _resolve_signature(self)
    145 
    146         if not matches:
--> 147             raise TypeError("No matching version.  GPU ufunc requires array "
    148                             "arguments to have the exact types.  This behaves "
    149                             "like regular ufunc with casting='no'.")

TypeError: No matching version.  GPU ufunc requires array arguments to have the exact types.  This behaves like regular ufunc with casting='no'.

Can you help me figure out if I can fix this problem? 

My system information is:

--------------------------------------------------------------------------------
__Time Stamp__
2020-05-22 20:20:42.637950

__Hardware Information__
Machine                                       : AMD64
CPU Name                                      : skylake
CPU count                                     : 8
CPU Features                                  :
64bit adx aes avx avx2 bmi bmi2 clflushopt cmov cx16 f16c fma fsgsbase invpcid
lzcnt mmx movbe pclmul popcnt prfchw rdrnd rdseed sahf sgx sse sse2 sse3 sse4.1
sse4.2 ssse3 xsave xsavec xsaveopt xsaves

__OS Information__
Platform                                      : Windows-10-10.0.17763-SP0
Release                                       : 10
System Name                                   : Windows
Version                                       : 10.0.17763
OS specific info                              : 1010.0.17763SP0Multiprocessor Free

__Python Information__
Python Compiler                               : MSC v.1916 64 bit (AMD64)
Python Implementation                         : CPython
Python Version                                : 3.8.3
Python Locale                                 : da_DK cp1252

__LLVM information__
LLVM version                                  : 8.0.0

__CUDA Information__
Found 1 CUDA devices
id 0          b'Quadro P520'                              [SUPPORTED]
                      compute capability: 6.1
                           pci device id: 0
                              pci bus id: 60
Summary:
        1/1 devices are supported
CUDA driver version                           : 10020
CUDA libraries:
Finding cublas from Conda environment
        named  cublas64_10.dll
        trying to open library...       ok
Finding cusparse from Conda environment
        named  cusparse64_10.dll
        trying to open library...       ok
Finding cufft from Conda environment
        named  cufft64_10.dll
        trying to open library...       ok
Finding curand from Conda environment
        named  curand64_10.dll
        trying to open library...       ok
Finding nvvm from Conda environment
        named  nvvm64_33_0.dll
        trying to open library...       ok
Finding libdevice from Conda environment
        searching for compute_20...     ok
        searching for compute_30...     ok
        searching for compute_35...     ok
        searching for compute_50...     ok

__ROC Information__
ROC available                                 : False
Error initialising ROC due to                 : No ROC toolchains found.
No HSA Agents found, encountered exception when searching:
Error at driver init:

HSA is not currently supported on this platform (win32).
:

__SVML Information__
SVML state, config.USING_SVML                 : True
SVML library found and loaded                 : True
llvmlite using SVML patched LLVM              : True
SVML operational                              : True

__Threading Layer Information__
TBB Threading layer available                 : True
OpenMP Threading layer available              : True
+--> Vendor:                                  : MS
Workqueue Threading layer available           : True

__Numba Environment Variable Information__
None set.

__Conda Information__
conda_build_version                           : 3.18.9
conda_env_version                             : 4.8.3
platform                                      : win-64
python_version                                : 3.7.4.final.0
root_writable                                 : True

__Current Conda Env__
alabaster                 0.7.12                     py_0
argh                      0.26.2                   py38_0
astroid                   2.4.1                    py38_0
atomicwrites              1.4.0                      py_0
attrs                     19.3.0                     py_0
autopep8                  1.4.4                      py_0
babel                     2.8.0                      py_0
backcall                  0.1.0                    py38_0
bcrypt                    3.1.7            py38he774522_0
blas                      1.0                         mkl
bleach                    3.1.4                      py_0
ca-certificates           2020.1.1                      0
certifi                   2020.4.5.1               py38_0
cffi                      1.14.0           py38h7a1dbc1_0
chardet                   3.0.4                 py38_1003
cloudpickle               1.4.1                      py_0
colorama                  0.4.3                      py_0
cryptography              2.9.2            py38h7a1dbc1_0
cudatoolkit               10.2.89              h74a9793_1
decorator                 4.4.2                      py_0
defusedxml                0.6.0                      py_0
diff-match-patch          20181111                   py_0
docutils                  0.16                     py38_0
entrypoints               0.3                      py38_0
flake8                    3.7.9                    py38_0
future                    0.18.2                   py38_0
icc_rt                    2019.0.0             h0cc432a_1
icu                       58.2                 ha925a31_3
idna                      2.9                        py_1
imagesize                 1.2.0                      py_0
importlib_metadata        1.5.0                    py38_0
intel-openmp              2020.1                      216
intervaltree              3.0.2                      py_0
ipykernel                 5.1.4            py38h39e3cac_0
ipython                   7.13.0           py38h5ca1d4c_0
ipython_genutils          0.2.0                    py38_0
ipywidgets                7.5.1                      py_0
isort                     4.3.21                   py38_0
jedi                      0.15.2                   py38_0
jinja2                    2.11.2                     py_0
jpeg                      9b                   hb83a4c4_2
jsonschema                3.2.0                    py38_0
jupyter                   1.0.0                    py38_7
jupyter_client            6.1.3                      py_0
jupyter_console           6.1.0                      py_0
jupyter_core              4.6.3                    py38_0
keyring                   21.1.1                   py38_2
lazy-object-proxy         1.4.3            py38he774522_0
libpng                    1.6.37               h2a8f88b_0
libsodium                 1.0.16               h9d3ae62_0
libspatialindex           1.9.3                h33f27b4_0
llvmlite                  0.32.1           py38ha925a31_0
m2w64-gcc-libgfortran     5.3.0                         6
m2w64-gcc-libs            5.3.0                         7
m2w64-gcc-libs-core       5.3.0                         7
m2w64-gmp                 6.1.0                         2
m2w64-libwinpthread-git   5.0.0.4634.697f757               2
markupsafe                1.1.1            py38he774522_0
mccabe                    0.6.1                    py38_1
mistune                   0.8.4           py38he774522_1000
mkl                       2020.1                      216
mkl-service               2.3.0            py38hb782905_0
mkl_fft                   1.0.15           py38h14836fe_0
mkl_random                1.1.0            py38hf9181ef_0
msys2-conda-epoch         20160418                      1
nbconvert                 5.6.1                    py38_0
nbformat                  5.0.6                      py_0
notebook                  6.0.3                    py38_0
numba                     0.49.1           py38h47e9c7a_0
numpy                     1.18.1           py38h93ca92e_0
numpy-base                1.18.1           py38hc3f5095_1
numpydoc                  0.9.2                      py_0
openssl                   1.1.1g               he774522_0
packaging                 20.3                       py_0
pandoc                    2.2.3.2                       0
pandocfilters             1.4.2                    py38_1
paramiko                  2.7.1                      py_0
parso                     0.5.2                      py_0
pathtools                 0.1.2                      py_1
pexpect                   4.8.0                    py38_0
pickleshare               0.7.5                 py38_1000
pip                       20.0.2                   py38_3
pluggy                    0.13.1                   py38_0
prometheus_client         0.7.1                      py_0
prompt-toolkit            3.0.4                      py_0
prompt_toolkit            3.0.4                         0
psutil                    5.7.0            py38he774522_0
pycodestyle               2.5.0                    py38_0
pycparser                 2.20                       py_0
pydocstyle                4.0.1                      py_0
pyflakes                  2.1.1                    py38_0
pygments                  2.6.1                      py_0
pylint                    2.5.2                    py38_0
pynacl                    1.3.0            py38h62dcd97_0
pyopenssl                 19.1.0                   py38_0
pyparsing                 2.4.7                      py_0
pyqt                      5.9.2            py38ha925a31_4
pyrsistent                0.16.0           py38he774522_0
pysocks                   1.7.1                    py38_0
python                    3.8.3                he1778fa_0
python-dateutil           2.8.1                      py_0
python-jsonrpc-server     0.3.4                      py_0
python-language-server    0.31.10                  py38_0
pytz                      2020.1                     py_0
pywin32                   227              py38he774522_1
pywin32-ctypes            0.2.0                 py38_1000
pywinpty                  0.5.7                    py38_0
pyyaml                    5.3.1            py38he774522_0
pyzmq                     18.1.1           py38ha925a31_0
qdarkstyle                2.8.1                      py_0
qt                        5.9.7            vc14h73c81de_0
qtawesome                 0.7.0                      py_0
qtconsole                 4.7.4                      py_0
qtpy                      1.9.0                      py_0
requests                  2.23.0                   py38_0
rope                      0.17.0                     py_0
rtree                     0.9.4            py38h21ff451_1
send2trash                1.5.0                    py38_0
setuptools                46.4.0                   py38_0
sip                       4.19.13          py38ha925a31_0
six                       1.14.0                   py38_0
snowballstemmer           2.0.0                      py_0
sortedcontainers          2.1.0                    py38_0
sphinx                    3.0.3                      py_0
sphinxcontrib-applehelp   1.0.2                      py_0
sphinxcontrib-devhelp     1.0.2                      py_0
sphinxcontrib-htmlhelp    1.0.3                      py_0
sphinxcontrib-jsmath      1.0.1                      py_0
sphinxcontrib-qthelp      1.0.3                      py_0
sphinxcontrib-serializinghtml 1.1.4                      py_0
spyder                    4.1.3                    py38_0
spyder-kernels            1.9.1                    py38_0
sqlite                    3.31.1               h2a8f88b_1
tbb                       2020.0               h74a9793_0
terminado                 0.8.3                    py38_0
testpath                  0.4.4                      py_0
toml                      0.10.0             pyh91ea838_0
tornado                   6.0.4            py38he774522_1
traitlets                 4.3.3                    py38_0
ujson                     1.35             py38he774522_0
urllib3                   1.25.8                   py38_0
vc                        14.1                 h0510ff6_4
vs2015_runtime            14.16.27012          hf0eaf9b_2
watchdog                  0.10.2                   py38_0
wcwidth                   0.1.9                      py_0
webencodings              0.5.1                    py38_1
wheel                     0.34.2                   py38_0
widgetsnbextension        3.5.1                    py38_0
win_inet_pton             1.1.0                    py38_0
wincertstore              0.2                      py38_0
winpty                    0.4.3                         4
wrapt                     1.11.2           py38he774522_0
yaml                      0.1.7                hc54c509_2
yapf                      0.28.0                     py_0
zeromq                    4.3.1                h33f27b4_3
zipp                      3.1.0                      py_0
zlib                      1.2.11               h62dcd97_4
--------------------------------------------------------------------------------

Regards, 
Brian

Valentin Haenel

unread,
May 25, 2020, 8:46:17 AM5/25/20
to numba...@continuum.io
Dear Brian,

to keep track of the issue I have added it to the Numba issue tracker here:


Best wishes,

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/47102688-b095-4dc3-a1b9-41496997b219%40continuum.io.
Reply all
Reply to author
Forward
0 new messages