You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to install openmm-torch in a fresh conda environment (Ubuntu 20.04 LTS with CUDA 12.0). When I use the default installation command conda install -c conda-forge openmm-torch
and try to import openmmtorch, I get the following error:
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/eva/anaconda3/envs/openmm-torch/lib/python3.11/site-packages/openmmtorch.py", line 15, in <module> import _openmmtorch ImportError: libtorch_cuda.so: cannot open shared object file: No such file or directory
From the output of conda list, I can see that the installed pytorch is the CPU version cpu_generic_py311h495eaba_0, which probably explains the incompatibility.
If I install openmm-torch and pytorch simultaneously with mamba install pytorch torchvision torchaudio pytorch-cuda=11.8 openmm-torch -c pytorch -c nvidia -c conda-forge
and try to import openmmtorch, I get this other error: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/eva/anaconda3/envs/openmm-torch/lib/python3.10/site-packages/openmmtorch.py", line 15, in <module> import _openmmtorch ImportError: /home/eva/anaconda3/envs/openmm-torch/lib/python3.10/site-packages/../../libOpenMMTorch.so: undefined symbol: _ZN5torch3jit4loadERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3c108optionalINS9_6DeviceEEEb
Is there a way to overcome this? Any help would be greatly appreciated!
The text was updated successfully, but these errors were encountered:
I'm trying to install openmm-torch in a fresh conda environment (Ubuntu 20.04 LTS with CUDA 12.0). When I use the default installation command
conda install -c conda-forge openmm-torch
and try to import openmmtorch, I get the following error:
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/eva/anaconda3/envs/openmm-torch/lib/python3.11/site-packages/openmmtorch.py", line 15, in <module> import _openmmtorch ImportError: libtorch_cuda.so: cannot open shared object file: No such file or directory
From the output of conda list, I can see that the installed pytorch is the CPU version
cpu_generic_py311h495eaba_0
, which probably explains the incompatibility.If I install openmm-torch and pytorch simultaneously with
mamba install pytorch torchvision torchaudio pytorch-cuda=11.8 openmm-torch -c pytorch -c nvidia -c conda-forge
and try to import openmmtorch, I get this other error:
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/eva/anaconda3/envs/openmm-torch/lib/python3.10/site-packages/openmmtorch.py", line 15, in <module> import _openmmtorch ImportError: /home/eva/anaconda3/envs/openmm-torch/lib/python3.10/site-packages/../../libOpenMMTorch.so: undefined symbol: _ZN5torch3jit4loadERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN3c108optionalINS9_6DeviceEEEb
Is there a way to overcome this? Any help would be greatly appreciated!
The text was updated successfully, but these errors were encountered: