Rok Mandeljc
Rok Mandeljc
Hmm, if you freeze the following example ```python import torch print("torch.cuda.is_available:", torch.cuda.is_available()) print("torch.cuda.device_count:", torch.cuda.device_count()) ``` does it work? Or does `cuda.is_available` also return false? Does target computer have NVIDIA driver...
That `Unexpected error from cudaGetDeviceCount` and `forward compatibility was attempted on non-supported HW` likely implies driver issue. Does CUDA otherwise work on the target machine? Does `nvidia-smi` show any errors?...
FWIW, if I freeze ```python import torch print("torch.cuda.is_available:", torch.cuda.is_available()) print("torch.cuda.device_count:", torch.cuda.device_count()) ``` in a clean python 3.9.18 virtual environment on my Fedora 39 desktop (with `torch` installed via `pip install...
> When the driver versions of two computers are the same, torch.cuda.is_available() returns True. Why does the driver version affect the use of CUDA? Is this related to the incomplete...
If you are using `onedir` mode, can you try removing `libcuda.so.1` from the frozen application directory? Alternatively, you can add `r'libcuda\.so(\..*)?'` to this list in your copy of PyInstaller (and...
If this is still `torch 1.13.1+cu117`, then originally, the `libcudnn_ops_infer.so.8` is in `site-packages/torch/lib/libcudnn_ops_infer.so.8` - and thus should be collected to `torch/lib/libcudnn_ops_infer.so.8`. Can you check what are the contents of `torch/lib`...
Hmmm... in that case, can you rebuild again (with `--clean` option), and watch the build log for line ``` ... INFO: Loading module hook 'hook-torch.py' from '/path/to/hook'... ... ``` to...
What are contents of the `hook-torch.py` file in that directory?
That's not from `pyinstaller-hooks-contrib 2024.0` - which should look like [this](https://github.com/pyinstaller/pyinstaller-hooks-contrib/blob/v2024.0/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-torch.py). Your hook file seems to be from [2023.10 or earlier](https://github.com/pyinstaller/pyinstaller-hooks-contrib/blob/v2023.10/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-torch.py). --- Although since it is an old brute-force hook...
Is this conda-installed `torch`, then? At the beginning, you said you downloaded .whl files - from where?