-
Notifications
You must be signed in to change notification settings - Fork 24
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conda build with pre-cxx11 ABI #102
Comments
You need to install pytorch from conda-forge. It's designed to be a compatible ecosystem where every package is built in the same way. |
Also got this error when using PyTorch 1.12.1 installed from Conda. Is there any workaround for this? |
Can you post the output of |
What later worked for me was to install pytorch (presumably with CUDA support) from |
This is my previous conda list (clamped to show only relevant packages ):
I followed @yaoyic 's suggestion and installed pytorch from channel |
When installing the openmm-torch plugin with the conda-forge packages, I met with the issue of ABI incompatibility:
For the tested setup pytorch v1.12, I checked the wheels from two sources: the official pip wheel and pytorch conda channel, inside which the pre-cxx11 name mangling was used:
$ readelf -sW libtorch_python.so | grep torch3jit4load 3501: 0000000000000000 0 FUNC GLOBAL DEFAULT UND _ZN5torch3jit4loadERKSsN3c108optionalINS3_6DeviceEEE 33881: 0000000000000000 0 FUNC GLOBAL DEFAULT UND _ZN5torch3jit4loadERKSsN3c108optionalINS3_6DeviceEEE
I don't know how you guys usually install pytorch, but in all my existing conda environments the pytorch uses pre-cxx11 name mangling. (Even though on pytorch's official website,
libtorch
is offered in both ABI forms, the python wheels seem to have only pre-cxx11 symbol names.) For the convenience of non-power users, I would suggest either of the following changes:README.md
, show how the user should install a compatible version of pytorch, (for example, a recipe for setting up a new conda environment from scratch that works out-of-the-box).The text was updated successfully, but these errors were encountered: