Explore Courses Blog Tutorials Interview Questions
0 votes
in Linux by (120 points)

I tried to run the Nvidia TensoRT's python samples, but got an error importing pycuda:

ImportError: .../pycuda-2020.1-py3.6-linux-x86_64.egg/pycuda/ undefined symbol: _ZN5boost6detail12set_tss_dataEPKvPFvPFvPvES3_ES5_S3_b

My environment:

  • Nvidia Driver Version: 460.73.01
  • CUDA Version: 10.0
  • CUDNN Version: 7.6.4
  • Operating System + Version: Ubuntu 16.04
  • Python Version: 3.6.13

How I installed pycuda:

  • pip install numpy==1.16
  • sudo apt-get install build-essential python-dev python-setuptools libboost-python-dev libboost-thread-dev -y
  • install boost:
    ./ --with-libraries=python
    ./b2 --with-python include=".../include/python3.6m/"
    sudo ./b2 install
  • install pycuda: I first run ./ --cuda-root=/usr/local/cuda-10.0, then I changed the settings in USE_SHIPPED_BOOST --> FalseBOOST_PYTHON_LIBNAME --> ['boost_python36']. Then
    sudo make install

After installing PyCuda, I installed TensorFlow 1.15 and TensorRT 7. The error happened on the line from pycuda._driver import * # noqa.

Please teach me how to address this problem. Thanks

Please log in or register to answer this question.

Browse Categories