Closed Cloudac7 closed 3 years ago
Please report 1, the version or commit hash of your source code, 2, how did you use the c++ interface in detail. A smallest piece of code that reproduces your issue is preferred. Thank you.
Please report 1, the version or commit hash of your source code, 2, how did you use the c++ interface in detail. A smallest piece of code that reproduces your issue is preferred. Thank you.
Please report 1, the version or commit hash of your source code, 2, how did you use the c++ interface in detail. A smallest piece of code that reproduces your issue is preferred. Thank you.
- I used the code with DeePMD-kit v1.2.4 (with TensorFlow C++ Interface 2.3.0). The code could be run at version lower than v1.1 (with TensorFlow C++ Interface<=1.13.2).
- Please refer to here for the whole code. For a simple test, C wrapper could be compiled.
Thanks for your reply, we will try to solve this problem as soon as possible.
Bug due to the use of an out-dated C++ interface. With the latest C++ interface provided by v2.0.0.b1, the code works well.
Bug due to the use of an out-dated C++ interface. With the latest C++ interface provided by v2.0.0.b1, the code works well.
Thanks, I will try the new version later.
Dear all, I'm now trying to write a C++ interface for calculating force as well as energy with structure information given for DeePMD potential. From
NNPInter.h
, I could just pass the value to thecompute
function to get the energy and force.However, when executing the
compute
function fromNNPInter.h
on GPU, it raise error(shown below):As shown,
CUDA_ERROR_MISALIGNED_ADDRESS
error raised. From printing each variables passed to the function, coordinations as well as box information are right. And I usedcuda-gdb
to debug, shows the backtrace information below:So where might the issue come from and how could I try to fix it? Thanks!