-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
_preload_cuda_deps does not work if cublas and cudnn are in different nvidia folders #92096
Comments
@dannyjeck, thank you very much for reporting the problem. |
Oh got it. I was trying to push a branch to this repo. Will do. |
can we create a new patch for this fix on 1.13? 2.0.0 is a big version upgrade for us and we found a critical CVE on 1.13: https://nvd.nist.gov/vuln/detail/CVE-2022-45907 |
@chakpak can you please create a new issue asking for what exactly changed needs to be picked and why updating to 2.0 is not an option, so that others can participate in a discussion. |
let me create a new issue with the relevant details |
馃悰 Describe the bug
I'm using bazel to install pytorch and bazel installs the cudnn and cublas dependencies in different folders.
The following raises an error
with the following exception
This is because I have a separate folder where the cublas folder is installed.
/home/djeck/.cache/bazel/_bazel_djeck/.../deps_sensing_nvidia_cublas_cu11/site-packages/nvidia/cublas/lib/libcublas.so.11
, which is also in my sys.path.The following works without raising an error.
I tried to put together a PR to modify this code https://github.com/pytorch/pytorch/blob/master/torch/__init__.py#L147 but it looks like I'm not an approved user.
Versions
Some of these are probably not correct, as the collect_env.py script doesn't use the bazel-installed stuff. Bazel in my set-up is using python 3.10 with the nightly pytorch version.
cc @malfet @seemethere
The text was updated successfully, but these errors were encountered: