Open linminhtoo opened 3 years ago
Hi,
You should be able to install gcc to your local folder without ROOT (also remember to change the environment variables). Maybe the best way is to check with your HPC admin for best practice.
Hi! I used the above script (with same torch and cuda version) and could fix the above error so that everything seems to build fine. However, when I run the code, I get the following exception. Do you maybe have any clue where this might come from?
Installing collected packages: gln
Running setup.py develop for gln
Successfully installed gln-0.0.0
(gln3) [vthost@cccxc536 GLN]$ cd ../
(gln3) [vthost@cccxc536 ...]$ python xyz/myglnuser.py
Traceback (most recent call last):
File "xyz/myglnuser.py", line 48, in <module>
import GLN.gln.mods.mol_gnn.mg_clib.mg_lib as mg_lib
File "/u/vthost/.../GLN/gln/mods/mol_gnn/mg_clib/__init__.py", line 1, in <module>
from .mg_lib import MGLIB
File "/u/vthost/.../GLN/gln/mods/mol_gnn/mg_clib/mg_lib.py", line 106, in <module>
MGLIB = _mg_lib(sys.argv)
File "/u/vthost/.../GLN/gln/mods/mol_gnn/mg_clib/mg_lib.py", line 14, in __init__
self.lib = ctypes.CDLL('%s/build/dll/libmolgnn.so' % dir_path)
File "/.../anaconda3/envs/gln3/lib/python3.6/ctypes/__init__.py", line 348, in __init__
self._handle = _dlopen(self._name, mode)
OSError: /u/vthost/.../GLN/gln/mods/mol_gnn/mg_clib/build/dll/libmolgnn.so: undefined symbol: _ZN3cfg14num_atom_typesE
It seems the dll is not build correctly. Can you double check it by navigating to gln/gln/mods/mol_gnn/mg_clib/
and manually do make
?
Hi Hanjun and team,
First of all, awesome work on GLN. I am trying to
pip install -e .
but I keep running into this error: c++: error: unrecognized command line option ‘-std=c++14’ (full log below) Please note that I am on an HPC cluster without root access. I think the problem might be due to the GCC version (4.8.5) being too low. I am new to Linux but I think I cannot upgrade GCC without root access. Do you happen to know any other work around for this?Any help would be greatly appreciated. Thanks in advance and happy new year!
Note: I prepare environment this way: