-
Notifications
You must be signed in to change notification settings - Fork 528
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
clean library and header dependencies #930
Conversation
Codecov Report
@@ Coverage Diff @@
## devel #930 +/- ##
===========================================
- Coverage 75.41% 64.28% -11.14%
===========================================
Files 85 5 -80
Lines 6729 14 -6715
===========================================
- Hits 5075 9 -5066
+ Misses 1654 5 -1649 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An error accured when I tried to compile and run the deepmd-kit python interface:
root deepmd-kit $ pip install .
Looking in indexes: http://mirrors.cloud.aliyuncs.com/pypi/simple/
Processing /root/dp-devel/deepmd-kit
DEPRECATION: A future pip version will change local packages to be built in-place without first copying to a temporary directory. We recommend you use --use-feature=in-tree-build to test your packages with this new behavior before it becomes the default.
pip 21.3 will remove support for this functionality. You can find discussion regarding this at https://github.com/pypa/pip/issues/7555.
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Requirement already satisfied: python-hostlist>=1.21 in /root/dp-devel/tensorflow_venv/lib/python3.6/site-packages (from deepmd-kit==2.0.0b4.dev28+g2684f11) (1.21)
Requirement already satisfied: typing-extensions in /root/dp-devel/tensorflow_venv/lib/python3.6/site-packages (from deepmd-kit==2.0.0b4.dev28+g2684f11) (3.7.4.3)
Requirement already satisfied: scipy in /root/dp-devel/tensorflow_venv/lib/python3.6/site-packages (from deepmd-kit==2.0.0b4.dev28+g2684f11) (1.5.4)
Requirement already satisfied: dargs>=0.2.6 in /root/dp-devel/tensorflow_venv/lib/python3.6/site-packages/dargs-0.2.6-py3.6.egg (from deepmd-kit==2.0.0b4.dev28+g2684f11) (0.2.6)
Requirement already satisfied: numpy in /root/dp-devel/tensorflow_venv/lib/python3.6/site-packages (from deepmd-kit==2.0.0b4.dev28+g2684f11) (1.19.5)
Requirement already satisfied: pyyaml in /root/dp-devel/tensorflow_venv/lib/python3.6/site-packages/PyYAML-5.4.1-py3.6-linux-x86_64.egg (from deepmd-kit==2.0.0b4.dev28+g2684f11) (5.4.1)
Building wheels for collected packages: deepmd-kit
Building wheel for deepmd-kit (PEP 517) ... done
Created wheel for deepmd-kit: filename=deepmd_kit-2.0.0b4.dev28+g2684f11-cp36-cp36m-linux_x86_64.whl size=1624618 sha256=d480952a7cbb436be83f76e2825688d2955accde84723c7e5b4ac44733c16bc1
Stored in directory: /root/.cache/pip/wheels/d7/0d/2a/b6f1653be91ad8dd465c1560d36da90e510c5d488bc4fd6563
Successfully built deepmd-kit
Installing collected packages: deepmd-kit
Successfully installed deepmd-kit-2.0.0b4.dev28+g2684f11
root deepmd-kit $ dp -h
WARNING:tensorflow:From /root/dp-devel/tensorflow_venv/lib/python3.6/site-packages/tensorflow/python/compat/v2_compat.py:96: disable_resource_variables (from tensorflow.python.ops.variable_scope) is deprecated and will be removed in a future version.
Instructions for updating:
non-resource variables are not supported in the long term
Traceback (most recent call last):
File "/root/dp-devel/tensorflow_venv/lib/python3.6/site-packages/deepmd/env.py", line 176, in get_module
module = tf.load_op_library(str(module_file))
File "/root/dp-devel/tensorflow_venv/lib/python3.6/site-packages/tensorflow/python/framework/load_library.py", line 57, in load_op_library
lib_handle = py_tf.TF_LoadLibrary(library_filename)
tensorflow.python.framework.errors_impl.NotFoundError: libdeepmd_op_cuda.so: cannot open shared object file: No such file or directory
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/root/dp-devel/tensorflow_venv/bin/dp", line 5, in <module>
from deepmd.entrypoints.main import main
File "/root/dp-devel/tensorflow_venv/lib/python3.6/site-packages/deepmd/__init__.py", line 3, in <module>
import deepmd.utils.network as network
File "/root/dp-devel/tensorflow_venv/lib/python3.6/site-packages/deepmd/utils/__init__.py", line 2, in <module>
from .data import DeepmdData
File "/root/dp-devel/tensorflow_venv/lib/python3.6/site-packages/deepmd/utils/data.py", line 10, in <module>
from deepmd.env import GLOBAL_NP_FLOAT_PRECISION
File "/root/dp-devel/tensorflow_venv/lib/python3.6/site-packages/deepmd/env.py", line 253, in <module>
op_module = get_module("libop_abi")
File "/root/dp-devel/tensorflow_venv/lib/python3.6/site-packages/deepmd/env.py", line 224, in get_module
)) from e
RuntimeError: This deepmd-kit package is inconsitent with TensorFlowRuntime, thus an error is raised when loading libop_abi.You need to rebuild deepmd-kit against this TensorFlowruntime.
@denghuilu I cannot reproduce the error. Can you check with
|
|
Maybe related to https://stackoverflow.com/q/61479487/9567349, but it's unclear to me why I don't have this error... |
I can only get this problem when using DP_VARIANT=cuda, which may be helpful to reproduce the problem. |
@denghuilu what is your cmake version? |
@denghuilu Please check if 56959ca works. |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
everything works well on my local workstation now.
* clean library and header dependencies Fix deepmodeling#926. * fix typo in rocm * set INSTALL_RPATH for libraries
…#930) - skip cell_type if from_poscar is True - use from_poscar = jdata.get('from_poscar', False) to get from_poscar
Fix #926.