Skip to content

Commit

Permalink
remove OP_LIB from op_abi (deepmodeling#2150)
Browse files Browse the repository at this point in the history
These files have been compiled in libdeepmd.so, so they don't need to
compile again.
  • Loading branch information
njzjz authored and mingzhong15 committed Jan 15, 2023
1 parent f0b6476 commit 131012b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions source/op/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# libop

set(OP_LIB ${PROJECT_SOURCE_DIR}/lib/src/SimulationRegion.cpp ${PROJECT_SOURCE_DIR}/lib/src/neighbor_list.cc)

file(GLOB OP_SRC prod_env_mat_multi_device_nvnmd.cc map_nvnmd.cc matmul_nvnmd.cc quantize_nvnmd.cc tanh2_nvnmd.cc tanh4_nvnmd.cc custom_op.cc prod_force.cc prod_virial.cc descrpt.cc descrpt_se_a_ef.cc descrpt_se_a_ef.cc descrpt_se_a_ef_para.cc descrpt_se_a_ef_vert.cc pair_tab.cc prod_force_multi_device.cc prod_virial_multi_device.cc soft_min.cc soft_min_force.cc soft_min_virial.cc ewald_recp.cc gelu_multi_device.cc map_aparam.cc neighbor_stat.cc unaggregated_grad.cc tabulate_multi_device.cc prod_env_mat_multi_device.cc)
file(GLOB OP_GRADS_SRC custom_op.cc prod_force_grad.cc prod_force_grad_multi_device.cc prod_virial_grad.cc prod_virial_grad_multi_device.cc soft_min_force_grad.cc soft_min_virial_grad.cc )
file(GLOB OP_PY *.py)
Expand All @@ -20,7 +18,7 @@ if (BUILD_CPP_IF)
endif (BUILD_CPP_IF)

if (BUILD_PY_IF)
add_library(op_abi MODULE ${OP_SRC} ${OP_LIB} ${OP_REMAPPER_SRC})
add_library(op_abi MODULE ${OP_SRC} ${OP_REMAPPER_SRC})
add_library(op_grads MODULE ${OP_GRADS_SRC})

# link: libdeepmd libtensorflow_framework
Expand Down

0 comments on commit 131012b

Please sign in to comment.