Replies: 47 comments
-
Do you set |
Beta Was this translation helpful? Give feedback.
-
actually I didn't export enverimental variable of $tensorflow_root, but when I tried to compile with cmake, I used the flag of -DTENSORFLOW_ROOT which links the tensorflow root dir. And I am sure the file of session is in the correct position. thanks for you reply and looking for your further instructions. |
Beta Was this translation helpful? Give feedback.
-
Which one did you use, |
Beta Was this translation helpful? Give feedback.
-
-DTENSORFLOW_ROOT, should I use --DTENSORFLOW_ROOT=......? |
Beta Was this translation helpful? Give feedback.
-
[hanye@hanye ~]$ source venv/bin/activate -- Detecting CXX compile features - done -- Configuring incomplete, errors occurred! |
Beta Was this translation helpful? Give feedback.
-
Oh got it. Please check whether these files all exist: deepmd-kit/source/cmake/Findtensorflow.cmake Lines 26 to 30 in 59d780c |
Beta Was this translation helpful? Give feedback.
-
All these files are there. |
Beta Was this translation helpful? Give feedback.
-
Any further suggestions? Thanks. |
Beta Was this translation helpful? Give feedback.
-
if (NOT TensorFlow_INCLUDE_DIRS AND tensorflow_FIND_REQUIRED) What's the meaning of "tensorflow_FIND_REQUIRED"? I am almost getting out of my mind...... |
Beta Was this translation helpful? Give feedback.
-
What's your |
Beta Was this translation helpful? Give feedback.
-
my cmake version is 3.11.0, |
Beta Was this translation helpful? Give feedback.
-
I've tried to do some debug works by inserting following lines into the Findtensorflow.cmake: includesfind_path(TensorFlow_INCLUDE_DIRS then cmake, the output is:" -- Detecting CXX compile features - done -- Configuring incomplete, errors occurred! |
Beta Was this translation helpful? Give feedback.
-
I've found the reason of this problem, it is because that I didn't install protobuf. When I tried to compile again after I installed protobuf3.8.0, I got following informations: Change Dir: /home/hanye/Downloads/deepmd-kit/source/build/tf_cxx_abi/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_ee0cc/fast" /usr/bin/gmake -f CMakeFiles/cmTC_ee0cc.dir/build.make gmake[1]: Entering directory Building CXX object CMakeFiles/cmTC_ee0cc.dir/tf_cxx_abi.cpp.o /home/hanye/opt/gcc7.5/bin/g++ -I/home/hanye/tensorflow_2.1_gpu/include Linking CXX executable cmTC_ee0cc /home/hanye/venv/lib/python3.6/site-packages/cmake/data/bin/cmake -E /home/hanye/opt/gcc7.5/bin/g++ -std=c++11 -Wno-ignored-attributes /usr/bin/ld: warning: libiomp5.so, needed by /usr/bin/ld: warning: libmklml_intel.so, needed by /home/hanye/tensorflow_2.1_gpu/lib/libtensorflow_framework.so: undefined /home/hanye/tensorflow_2.1_gpu/lib/libtensorflow_framework.so: undefined /home/hanye/tensorflow_2.1_gpu/lib/libtensorflow_framework.so: undefined /home/hanye/tensorflow_2.1_gpu/lib/libtensorflow_framework.so: undefined /home/hanye/tensorflow_2.1_gpu/lib/libtensorflow_framework.so: undefined /home/hanye/tensorflow_2.1_gpu/lib/libtensorflow_framework.so: undefined /home/hanye/tensorflow_2.1_gpu/lib/libtensorflow_framework.so: undefined /home/hanye/tensorflow_2.1_gpu/lib/libtensorflow_framework.so: undefined /home/hanye/tensorflow_2.1_gpu/lib/libtensorflow_framework.so: undefined /home/hanye/tensorflow_2.1_gpu/lib/libtensorflow_framework.so: undefined /home/hanye/tensorflow_2.1_gpu/lib/libtensorflow_framework.so: undefined /home/hanye/tensorflow_2.1_gpu/lib/libtensorflow_framework.so: undefined /home/hanye/tensorflow_2.1_gpu/lib/libtensorflow_framework.so: undefined /home/hanye/tensorflow_2.1_gpu/lib/libtensorflow_framework.so: undefined /home/hanye/tensorflow_2.1_gpu/lib/libtensorflow_framework.so: undefined /home/hanye/tensorflow_2.1_gpu/lib/libtensorflow_framework.so: undefined /home/hanye/tensorflow_2.1_gpu/lib/libtensorflow_framework.so: undefined /home/hanye/tensorflow_2.1_gpu/lib/libtensorflow_framework.so: undefined /home/hanye/tensorflow_2.1_gpu/lib/libtensorflow_framework.so: undefined /home/hanye/tensorflow_2.1_gpu/lib/libtensorflow_framework.so: undefined /home/hanye/tensorflow_2.1_gpu/lib/libtensorflow_framework.so: undefined /home/hanye/tensorflow_2.1_gpu/lib/libtensorflow_framework.so: undefined /home/hanye/tensorflow_2.1_gpu/lib/libtensorflow_framework.so: undefined collect2: error: ld returned 1 exit status gmake[1]: *** [cmTC_ee0cc] Error 1 gmake[1]: Leaving directory gmake: *** [cmTC_ee0cc/fast] Error 2 -- Configuring incomplete, errors occurred! Any suggestions? |
Beta Was this translation helpful? Give feedback.
-
according to the solution from https://fantashit.com/config-mkl-leads-to-libmklml-intel-so-cannot-open-shared-object-file-no-such-file-or-directory/, I compiled tensorflw/external/mkl_dnn and install the libraries. After that, compiling of deepmd-kit gives no errors. any suggestions? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
@hanyecn Did your procedure above fix all of the connections to the python library file libop_abi.so, |
Beta Was this translation helpful? Give feedback.
-
yes, it works for me. now the code can work correctly, good luck. |
Beta Was this translation helpful? Give feedback.
-
This is expected behavior |
Beta Was this translation helpful? Give feedback.
-
Thanks for your help. |
Beta Was this translation helpful? Give feedback.
-
@hanyecn Can you please post your exact cmake build command if that worked for you? I need a good example. Mine still doesn’t work after reinstalling deepmd-kit . Can’t find session.h... |
Beta Was this translation helpful? Give feedback.
-
My cmake build command is: cmake -DUSE_CUDA_TOOLKIT=true -DXDRFILE_ROOT=/home/hanye/xdrfile -DTENSORFLOW_ROOT=/home/hanye/tensorflow_2.1_gpu -DCMAKE_INSTALL_PREFIX=/home/hanye/deepmd_kit ../ |
Beta Was this translation helpful? Give feedback.
-
Hi,
Thanks a lot! |
Beta Was this translation helpful? Give feedback.
-
I think you met a similar error to #262 (comment). Can you list your environment variables? |
Beta Was this translation helpful? Give feedback.
-
Thanks for you reply, my environment variables are shown below: (venv) [hanye@hanye ~]$ env |
Beta Was this translation helpful? Give feedback.
-
I tried to downgrade cuda to 9.2, the error of "Segmentation fault (core dumped)" is still there. My environment variables are shown below: Any suggestions? Thanks a lot. |
Beta Was this translation helpful? Give feedback.
-
I suggest to clean your
|
Beta Was this translation helpful? Give feedback.
-
Hi, I've tried to get this done on a new server, but the same error occurred. Now, I'm trying to change my OS for CentOs 7.0 to Ubuntu. |
Beta Was this translation helpful? Give feedback.
-
Did you try our docker images? https://github.com/orgs/deepmodeling/packages/container/deepmd-kit/77709 |
Beta Was this translation helpful? Give feedback.
-
Which potential did you train, |
Beta Was this translation helpful? Give feedback.
-
I'm trying to train with water.json. docker images can't work on my machine, it gives me a lot of strange error messages, I will not try to use docker image any more. Now I'm using cpu version, but it's really slow. |
Beta Was this translation helpful? Give feedback.
-
Hello, I met the same problem while compiling deepmd-kit.
I followed the instructions from tensorflow website and deepmd-kit github homepage.
gcc 7.5
cuda 10.1
cudnn 7.6
tensorrt 6
tensorflow 2.1.2
bazel 0.29.1
nccl 2.7.8
python3
I compiled pip package and c++ lib file of tensorflow-gpu at the same time:
bazel build --config=opt --config=mkl --copt=-msse4.2 --copt=-mavx2 --action_env=PATH --action_env=LD_LIBRARY_PATH
//tensorflow/tools/pip_package //tensorflow:libtensorflow_cc.so
the pip_package was installed successfully and works well, I can do 'import tensorflow as tf; tf.print()'
but when I tried to compile deepmd-kit using
cmake -DUSE_CUDA_TOOLKIT=true --DXDRFILE_ROOT=$xdrfile_root --DTENSORFLOW_ROOT=$tensorflow_root
I got the same error:
Not found 'tensorflow/core/public/session.h' directory in path
I am sure the 'session.h' file IS there in the directory.
Please help me.
Thanks a lot.
Beta Was this translation helpful? Give feedback.
All reactions