Hi HOOMD developers,
However, when I built and installed HOOMD with tag v4.2.1 (commit 506f9315d68a2a6ab291d9a757ee89f070b21ca9), which also finished successfully, the "import hoomd" command shows undefined symbols inside the _md module (Full trackback below):
_
md.cpython-38-x86_64-linux-gnu.so: undefined symbol: _ZN5hoomd2md13 PotentialPairINS0_15EvaluatorPairLJEEC2ESt10shared_ptrINS_16SystemDefinitionEES4_INS0_12NeighborListEE
When I check
there are a bunch of undefined symbols from other EvaluatorPairXYZ as well.
The two builds (v4.2.0 and v4.2.1) are completely separated (different source folders and virtual envs). I have been installing using v3.8.1 and v4.2.0 without any issue. The same toolchain is used: Intel 2022.0, Intel MPI 2021.5, mkl 2020 update 1, cuda 11.5, python 3.8, anaconda 2021.05, cmake 3.19:
mkdir build && cd build
cmake ../src -DCMAKE_CXX_FLAGS=-march=native -DCMAKE_C_FLAGS=-march=native -DENABLE_GPU=on -DENABLE_MPI=on -DBUILD_TESTING=off -DBUILD_MPCD=off
Any comments and suggestions for resolving the issue are appreciated.
Thanks,
-Trung
Traceback (most recent call last):
2 File "run_from_restart_polymers_v4.py", line 5, in <module>
3 import hoomd
4 File "/project/rcc/trung/hoomd-blue/hoomd-venv/lib/python3.8/site-packages/hoomd/__init__.py", line 79, in <module>
5 from hoomd import md
6 File "/project/rcc/trung/hoomd-blue/hoomd-venv/lib/python3.8/site-packages/hoomd/md/__init__.py", line 22, in <module>
7 from hoomd.md import alchemy
8 File "/project/rcc/trung/hoomd-blue/hoomd-venv/lib/python3.8/site-packages/hoomd/md/alchemy/__init__.py", line 28, in <module>
9 from . import methods
10 File "/project/rcc/trung/hoomd-blue/hoomd-venv/lib/python3.8/site-packages/hoomd/md/alchemy/methods.py", line 7, in <module>
11 from hoomd.md.alchemy.pair import AlchemicalDOF
12 File "/project/rcc/trung/hoomd-blue/hoomd-venv/lib/python3.8/site-packages/hoomd/md/alchemy/pair.py", line 11, in <module>
13 from hoomd.md.pair import LJGauss as BaseLJGauss
14 File "/project/rcc/trung/hoomd-blue/hoomd-venv/lib/python3.8/site-packages/hoomd/md/pair/__init__.py", line 135, in <module>
15 from . import aniso
16 File "/project/rcc/trung/hoomd-blue/hoomd-venv/lib/python3.8/site-packages/hoomd/md/pair/aniso.py", line 26, in <module>
17 from hoomd.md.pair.pair import Pair
18 File "/project/rcc/trung/hoomd-blue/hoomd-venv/lib/python3.8/site-packages/hoomd/md/pair/pair.py", line 10, in <module>
19 from hoomd.md import _md
20 ImportError: /project/rcc/trung/hoomd-blue/hoomd-venv/lib/python3.8/site-packages/hoomd/md/_
md.cpython-38-x86_64-linux-gnu.so: undefined symbol: _ZN5hoomd2md13 PotentialPairINS0_15EvaluatorPairLJEEC2ESt10shared_ptrINS_16SystemDefinitionEES4_INS0_12NeighborListEE