Hanan Shteingart
2017-11-29 09:05:29 UTC
Hi,
First time I try to use pyCUDA and I have some problems.
After compiling and installing when I try to import the driver `python -c
"from pycuda import driver"` I get:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File
"/home/gonguser/anaconda3/lib/python3.6/site-packages/pycuda/driver.py",
line 5, in <module>
from pycuda._driver import * # noqa
ImportError: /home/gonguser/anaconda3/lib/python3.6/site-packages/pycuda/_
driver.cpython-36m-x86_64-linux-gnu.so: *undefined symbol:
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev*
I have searched the mailing list and found this thread:
http://pycuda.2962900.n2.nabble.com/undefined-symbol-error-td7575758.html
so I added -D_GLIBCXX_USE_CXX11_ABI=0 to the siteconf.py:
*CXXFLAGS = ['-D_GLIBCXX_USE_CXX11_ABI=0']*
However, it didn't help. I see it didn't help another user too in the
thread:
http://pycuda.2962900.n2.nabble.com/undefined-symbol-error-td7575758.html
**** After suffering for a day I found I had a misspelled the CUDA_ROOT
environment variable! The setup scripts do not verify it is correct.... Be
ware! *** *
First time I try to use pyCUDA and I have some problems.
After compiling and installing when I try to import the driver `python -c
"from pycuda import driver"` I get:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File
"/home/gonguser/anaconda3/lib/python3.6/site-packages/pycuda/driver.py",
line 5, in <module>
from pycuda._driver import * # noqa
ImportError: /home/gonguser/anaconda3/lib/python3.6/site-packages/pycuda/_
driver.cpython-36m-x86_64-linux-gnu.so: *undefined symbol:
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev*
I have searched the mailing list and found this thread:
http://pycuda.2962900.n2.nabble.com/undefined-symbol-error-td7575758.html
so I added -D_GLIBCXX_USE_CXX11_ABI=0 to the siteconf.py:
*CXXFLAGS = ['-D_GLIBCXX_USE_CXX11_ABI=0']*
However, it didn't help. I see it didn't help another user too in the
thread:
http://pycuda.2962900.n2.nabble.com/undefined-symbol-error-td7575758.html
**** After suffering for a day I found I had a misspelled the CUDA_ROOT
environment variable! The setup scripts do not verify it is correct.... Be
ware! *** *