Replies: 1 comment 10 replies
-
Did you add the tensorflow library path into LD_LIBRARY_PATH before? |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,When I installed the DeePMD-kit's C++ interface the following error occurred:
[ 97%] Linking CXX executable dp_ipi
../op/libdeepmd_op.so:对‘tensorflow::kernel_factory::OpKernelRegistrar::InitInternal(tensorflow::KernelDef const*, absl::string_view, std::unique_ptr<tensorflow::kernel_factory::OpKernelFactory, std::default_deletetensorflow::kernel_factory::OpKernelFactory >)’未定义的引用
../op/libdeepmd_op.so:对‘tensorflow::Status::Status(tensorflow::error::Code, absl::string_view)’未定义的引用
../op/libdeepmd_op.so:对‘tensorflow::register_op::OpDefBuilderReceiver::OpDefBuilderReceiver(tensorflow::register_op::OpDefBuilderWrapper const&)’未定义的引用
../op/libdeepmd_op.so:对‘tensorflow::GetNodeAttr(tensorflow::AttrSlice const&, absl::string_view, float*)’未定义的引用
../op/libdeepmd_op.so:对‘tensorflow::OpKernelContext::input(int)’未定义的引用
../op/libdeepmd_op.so:对‘tensorflow::GetNodeAttr(tensorflow::AttrSlice const&, absl::string_view, int*)’未定义的引用
../op/libdeepmd_op.so:对‘tensorflow::GetNodeAttr(tensorflow::AttrSlice const&, absl::string_view, std::vector<int, std::allocator >*)’未定义的引用
../op/libdeepmd_op.so:对‘tensorflow::TensorShapeBasetensorflow::TensorShape::AddDim(long long)’未定义的引用
collect2: error: ld returned 1 exit status
ipi/CMakeFiles/dp_ipi.dir/build.make:102: recipe for target 'ipi/dp_ipi' failed
make[2]: *** [ipi/dp_ipi] Error 1
CMakeFiles/Makefile2:339: recipe for target 'ipi/CMakeFiles/dp_ipi.dir/all' failed
make[1]: *** [ipi/CMakeFiles/dp_ipi.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
environment:
ubuntu18.04
gcc--7.5.0 bazel--3.7.2 cuda--11.1
So what is the cause of this error, and how to solve it?
Beta Was this translation helpful? Give feedback.
All reactions