Hello,

I am Ziqiao, trying to use PyCUDA  to boost my calculation.
There were several attempts and I finally succeed to install PyCUDA.
However, when I try the sample code on the Wiki for a test, it shows this 
import error.

--------------------
Traceback (most recent call last):

  File "<ipython-input-1-44ade9f6a780>", line 1, in <module>
    runfile('D:/NICT/Python Scripts/PyCUDA_test.py', wdir='D:/NICT/Python 
Scripts')

  File "C:\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", 
line 880, in runfile
    execfile(filename, namespace)

  File "C:\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", 
line 102, in execfile
    exec(compile(f.read(), filename, 'exec'), namespace)

  File "D:/NICT/Python Scripts/PyCUDA_test.py", line 9, in <module>
    import pycuda.driver as cuda

  File "C:\Anaconda3\lib\site-packages\pycuda\driver.py", line 5, in <module>
    from pycuda._driver import *  # noqa

SystemError: <class 'ImportError'> returned a result with an error set
--------------------

My current environment is:
Win 10 64 bit
NVIDIA Quadro P1000 (with the latest driver)
Python 3.6.1 (with Anaconda 3 4.4.0)
Cuda 10.1.168_425.25 (for win 10)
Microsoft Visual Studio 14.0 (for the compiler)

I used:
pycuda-2019.1+cuda101-cp36-cp36m-win_amd64.whl
pytools-2019.1.1-py2.py3-none-any.whl
to install PyCUDA and PyTools and they ended successfully.

If anyone knows how to fix this, please let me know.
Thank you in advance!
_______________________________________________
PyCUDA mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to