Burdge, Kevin B.
2017-07-14 16:31:47 UTC
Hi everyone,
I've been struggling to get PyCUDA up and running on my new machine (Ubuntu 16.04, using latest python 3 anaconda distro as python). I can get the configure and install to run without any hiccups, and have sorted out the path to the CUDA directory, but I inevitably keep arriving at the following error when I try and run the test script:
python test_driver.pyTraceback (most recent call last):
File "test_driver.py", line 6, in <module>
from pycuda.tools import mark_cuda_test, dtype_to_ctype
File "/home/kburdge/anaconda3/lib/python3.6/site-packages/pycuda/tools.py", line 34, in <module>
import pycuda.driver as cuda
File "/home/kburdge/anaconda3/lib/python3.6/site-packages/pycuda/driver.py", line 5, in <module>
from pycuda._driver import * # noqa
ImportError: /home/kburdge/anaconda3/lib/python3.6/site-packages/pycuda/_driver.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev
Any pointers on how to resolve this would be immensely appreciated.
Best,
Kevin
I've been struggling to get PyCUDA up and running on my new machine (Ubuntu 16.04, using latest python 3 anaconda distro as python). I can get the configure and install to run without any hiccups, and have sorted out the path to the CUDA directory, but I inevitably keep arriving at the following error when I try and run the test script:
python test_driver.pyTraceback (most recent call last):
File "test_driver.py", line 6, in <module>
from pycuda.tools import mark_cuda_test, dtype_to_ctype
File "/home/kburdge/anaconda3/lib/python3.6/site-packages/pycuda/tools.py", line 34, in <module>
import pycuda.driver as cuda
File "/home/kburdge/anaconda3/lib/python3.6/site-packages/pycuda/driver.py", line 5, in <module>
from pycuda._driver import * # noqa
ImportError: /home/kburdge/anaconda3/lib/python3.6/site-packages/pycuda/_driver.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev
Any pointers on how to resolve this would be immensely appreciated.
Best,
Kevin