Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

TensorFlow is not linked to protobuf #3627

Closed
yl960122 opened this issue Mar 31, 2024 · 2 comments
Closed

TensorFlow is not linked to protobuf #3627

yl960122 opened this issue Mar 31, 2024 · 2 comments

Comments

@yl960122
Copy link

Summary

I encountered the error 'TensorFlow is not linked to protobuf' while compiling DeepMD, but in fact, I did not have the protobuf option when building TensorFlow==2.7.0 automatically. It seems that Protobuf is already built into libtensorflow_cc.so. I want to know how to resolve this error.
image
image

DeePMD-kit Version

2.7.0

TensorFlow Version

2.2.7

Python Version, CUDA Version, GCC Version, LAMMPS Version, etc

cpu

Details

I am compiling the CPU version of TensorFlow and DeepMDKit.

@yl960122
Copy link
Author

The compilation command is:

cmake ../ -DTENSORFLOW_ROOT=/software/tf
-DCMAKE_INSTALL_PREFIX=
/software/deepmd-kit/source/dp_install
-DLAMMPS_SOURCE_ROOT=~/software/lammps-2Aug2023
-DUSE_TF_PYTHON_LIBS=FALSE

@njzjz
Copy link
Member

njzjz commented Apr 1, 2024

Protobuf headers are required, as shown in the message.

@deepmodeling deepmodeling locked and limited conversation to collaborators May 22, 2024
@njzjz njzjz converted this issue into discussion #3808 May 22, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

2 participants