I am having problems with PyCuda installation on Jetson Agx Orin 64gb Dev Kit.
nvcc–version result:
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Sun_Oct_23_22:16:07_PDT_2022
Cuda compilation tools, release 11.4, V11.4.315
Build cuda_11.4.r11.4/compiler.31964100_0
When I do the following:
export PATH=/usr/local/cuda-11.4/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-11.4/lib64:$LD_LIBRARY_PATH
sudo python3 -m pip install pycuda --user
I got the following error:
check.warn(importable)
error: command ‘/usr/bin/aarch64-linux-gnu-gcc’ failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pycuda
Failed to build pycuda
ERROR: Could not build wheels for pycuda, which is required to install pyproject.toml-based projects
Addtion:
when I try pip3 install pycuda, I get the following:
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pycuda in /home/dls/.local/lib/python3.8/site-packages (2022.2.2)
Requirement already satisfied: pytools>=2011.2 in /home/dls/.local/lib/python3.8/site-packages (from pycuda) (2023.1.1)
Requirement already satisfied: appdirs>=1.4.0 in /home/dls/.local/lib/python3.8/site-packages (from pycuda) (1.4.4)
Requirement already satisfied: mako in /usr/lib/python3/dist-packages (from pycuda) (1.1.0)
Requirement already satisfied: platformdirs>=2.2.0 in /home/dls/.local/lib/python3.8/site-packages (from pytools>=2011.2->pycuda) (3.10.0)
Requirement already satisfied: typing-extensions>=4.0 in /home/dls/.local/lib/python3.8/site-packages (from pytools>=2011.2->pycuda) (4.8.0)
When I run my script, I get following error:
import pycuda.autoinit
ModuleNotFoundError: No module named ‘pycuda’
$ python3
Python 3.8.10 (default, May 26 2023, 14:05:08)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pycuda.autoinit
>>>
Hi, just changed to pycuda and result in same error:
import pycuda.autoinit
Traceback (most recent call last):
File “”, line 1, in
ModuleNotFoundError: No module named ‘pycuda’