You are not logged in.

#1 2022-02-14 09:20:01

yiyangzhi111
Member
Registered: 2022-02-14
Posts: 2

pytorch no libcupti.so.11.5

I installed pytorch, and update my arch to newest, then pytorch not works, error msg is :

$python
>>> import torch
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.10/site-packages/torch/__init__.py", line 197, in <module>
    from torch._C import *  # noqa: F403
ImportError: libcupti.so.11.5: cannot open shared object file: No such file or directory


I found /opt/cuda/extras/CUPTI/lib64/libcupti.so.11.6, but no libcupti.so.11.5, maybe pytorch's version not match to cuda?

Offline

#2 2022-02-14 11:50:13

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,370

Re: pytorch no libcupti.so.11.5

$ pkgfile libcupti.so.11.5
community/cuda-tools
$ pkgfile libcupti.so.11.6
community/cuda
community/cuda-tools
$ 

try installing cuda-tools .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2022-02-14 16:05:57

yiyangzhi111
Member
Registered: 2022-02-14
Posts: 2

Re: pytorch no libcupti.so.11.5

thanks, It works,but I remeber it works one week before without cuda-tools.

sudo pacman -S cuda-tools
sudo ln -s /opt/cuda/nsight_systems/target-linux-x64/libcupti.so.11.5 /usr/lib/libcupti.so.11.5
Lone_Wolf wrote:
$ pkgfile libcupti.so.11.5
community/cuda-tools
$ pkgfile libcupti.so.11.6
community/cuda
community/cuda-tools
$ 

try installing cuda-tools .

Offline

#4 2022-02-16 12:07:02

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,370

Re: pytorch no libcupti.so.11.5

You should not need to create that symbolic link for things to work.

If pytorch can't find that library that suggests a bug in pytorch or cuda.

As for why it worked before without cuda-tools : check your pacman log when you updated from cuda 11.5 to cuda 11.6 .
Was that before or after the last time it worked without cuda-tools present ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB