Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.6/dist-packages/torch/__init__.py", line 195, in <module>
_load_global_deps()
File "/usr/local/lib/python3.6/dist-packages/torch/__init__.py", line 148, in _load_global_deps
ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL)
File "/usr/lib/python3.6/ctypes/__init__.py", line 348, in __init__
self._handle = _dlopen(self._name, mode)
OSError: libcurand.so.10: cannot open shared object file: No such file or directory
The version of pytorch(1.8.0) and jetpack(4.5) matched, but I noticed that libcurand.so.10 was missing in /usr/local/cuda-10.2/lib64. How can I solve this problem?
I tried to re-install my CUDA Toolkit by the command above, but got error messages shown below:
Unpacking cuda-libraries-dev-10-2 (10.2.89-1) ... Selecting previously unselected package cuda-nvml-dev-10-2. Preparing to unpack .../24-cuda-nvml-dev-10-2_10.2.89-1_arm64.deb ... Unpacking cuda-nvml-dev-10-2 (10.2.89-1) ... dpkg: error processing archive /tmp/apt-dpkg-install-v987x5/24-cuda-nvml-dev-10-2_10.2.89-1_arm64.deb (--unpack): trying to overwrite '/usr/local/cuda-10.2/lib64', which is also in package cuda-cudart-10-2 10.2.89-1 No apport report written because MaxReports is reached already
Yeah, my toolkit is missing a lot of libs. When I tried uninstalling some new errors appeared :(
I’ll try to figure it out and update once I make progress.
After I installed torch and CUDA toolkit by sudo apt-get install CUDA-toolkit-10-2, an error message appeared:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/lecoan/.local/lib/python3.6/site-packages/torch/__init__.py", line 195, in <module>
_load_global_deps()
File "/home/lecoan/.local/lib/python3.6/site-packages/torch/__init__.py", line 148, in _load_global_deps
ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL)
File "/usr/lib/python3.6/ctypes/__init__.py", line 348, in __init__
self._handle = _dlopen(self._name, mode)
OSError: libcudnn.so.8: cannot open shared object file: No such file or directory
I noticed the shared object file reported missing was different from the previous one. Wonder how I can solve this problem…