Automatic Script Installation

First use the following script to install, if successful, everything is ok, if the error, please continue to see

I encountered two kinds of errors when configuring myself

  • All commands are unusable after the first two lines: sudo, ls, PIP…
  • Run error (red)
export PATH=/usr/local/cuda/bin:\${PATH}
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:\${LD_LIBRARY_PATH}
sudo pip3 install pycuda
Copy the code

Manual installation

  1. Please make surenvcc -VThe correct output
  2. Download the Pycuda source code
  3. Unzip the file and compile it (long wait here)
The tar ZXVF pycuda - 2019.1.2. Tar. GzcdPycuda 2019.1.2 / python3 configure. Py - cuda - root = / usr /local/cuda-10.2
sudo python3 setup.py install
Copy the code
  1. If the following information is displayed, the installation is successful
Installed /usr/local/ lib/python3.6 / dist - packages/pycuda - 2019.1.2 - py3.6 - Linux - aarch64. Egg Processing dependenciesforPycuda = = 2019.1.2 SearchingforPytools ==2021.1 Best match: PyTools 2021.1 Adding PyTools 2021.1 to easy-install. PTH file...... Using /usr/lib/python3/dist-packages SearchingforDataclasses ==0.8 Best match: dataclasses 0.8 Adding dataclasses 0.8 to easy-install. PTH file Using /usr/local/ lib/python3.6 / dist - packages Finished processing dependenciesforPycuda = = 2019.1.2Copy the code

Verify that PyCUDa is installed successfully

Run: test-pycuda.py and install correctly if output matrix results

Resources

  • Pycuda installed on Jetson Nano!! _ Handsome shiny blog -CSDN blog
  • Error while loading shared libraries: libprotoc.so.19_