Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -713,3 +713,14 @@ void NEP_Compiled_Evaluation::launch_force_angular(
sum_fxyz, 0, fx, fy, fz, virial),
"force_angular_jit");
}

NEP_Compiled_Evaluation::NEP_Compiled_Evaluation(const NEP_Compile_Config& config)
: library(config)
{
if (!library.is_valid()) {
return;
}
valid = common.load(library);
valid &= library.load_symbol("nep_train_launch_ann_nep", ann_nep_);
valid &= library.load_symbol("nep_train_launch_ann_temperature", ann_temperature_);
}
11 changes: 0 additions & 11 deletions src/main_nep/nep/nep.cu
Original file line number Diff line number Diff line change
Expand Up @@ -107,17 +107,6 @@ NEP_Compile_Config make_compile_config(
}
} // namespace

NEP_Compiled_Evaluation::NEP_Compiled_Evaluation(const NEP_Compile_Config& config)
: library(config)
{
if (!library.is_valid()) {
return;
}
valid = common.load(library);
valid &= library.load_symbol("nep_train_launch_ann_nep", ann_nep_);
valid &= library.load_symbol("nep_train_launch_ann_temperature", ann_temperature_);
}

void NEP::initialize_compiled_kernel(const NEP_Potential_Parameters& para)
{
if (para.nep_compile && para.prediction == 0) {
Expand Down
2 changes: 1 addition & 1 deletion src/main_nep/nep/nep.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "main_nep/common/nep_batch_data.cuh"
#include "main_nep/common/energy_difference.cuh"
#include "main_nep/common/nep_compile.cuh"
#include "nep_evaluate.cuh"
#include "main_nep/common/nep_evaluate.cuh"
#include "main_nep/common/nep_common.cuh"
#include <memory>

Expand Down
Loading