[PyCUDA] Pycuda error in windows 10 Python 3.7.3 Cuda9.0

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[PyCUDA] Pycuda error in windows 10 Python 3.7.3 Cuda9.0

olaycab
I installed pycuda by downloading .whl file.

When I run the command :

import pycuda.gpuarray as gpuarray

I get the below error:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Anaconda\lib\site-packages\pycuda\gpuarray.py", line 4, in <module>
    import pycuda.elementwise as elementwise
  File "C:\Anaconda\lib\site-packages\pycuda\elementwise.py", line 35, in <module>
    from pycuda.tools import context_dependent_memoize
  File "C:\Anaconda\lib\site-packages\pycuda\tools.py", line 34, in <module>
    import pycuda.driver as cuda
  File "C:\Anaconda\lib\site-packages\pycuda\driver.py", line 6, in <module>
    from pycuda._driver import *  # noqa
ModuleNotFoundError: No module named 'pycuda._driver'

The folder has "_driver.cp37-win_amd64.pyd" file but not pycuda._driver file.
_______________________________________________
PyCUDA mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]
Reply | Threaded
Open this post in threaded view
|

[PyCUDA] Re: Pycuda error in windows 10 Python 3.7.3 Cuda9.0

Andreas Kloeckner
[hidden email] writes:

> I installed pycuda by downloading .whl file.
>
> When I run the command :
>
> import pycuda.gpuarray as gpuarray
>
> I get the below error:
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "C:\Anaconda\lib\site-packages\pycuda\gpuarray.py", line 4, in <module>
>     import pycuda.elementwise as elementwise
>   File "C:\Anaconda\lib\site-packages\pycuda\elementwise.py", line 35, in <module>
>     from pycuda.tools import context_dependent_memoize
>   File "C:\Anaconda\lib\site-packages\pycuda\tools.py", line 34, in <module>
>     import pycuda.driver as cuda
>   File "C:\Anaconda\lib\site-packages\pycuda\driver.py", line 6, in <module>
>     from pycuda._driver import *  # noqa
> ModuleNotFoundError: No module named 'pycuda._driver'
>
> The folder has "_driver.cp37-win_amd64.pyd" file but not pycuda._driver file.
> _______________________________________________
> PyCUDA mailing list -- [hidden email]
> To unsubscribe send an email to [hidden email]
>
Use the tool "Dependency Walker" on _driver.cp37-win_amd64.pyd to see
what DLLs you're missing. Do you have the CUDA drivers installed?

Andreas

_______________________________________________
PyCUDA mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]

signature.asc (847 bytes) Download Attachment