If Torch 2.1.0 is used as a dependency with Bazel and rules_python, _preload_cuda_deps
fails with OSError: libcufft.so.11: cannot open shared object file: No such file or directory
.
Torch 2.1 works fine if you install it and its CUDA dependencies into a single site-packages
(e.g., in a virtualenv). It doesn't work with Bazel, as it installs each dependency into its own directory tree, which is appended to PYTHONPATH
.
$ bazel test //...