Skip to content

Commit

Permalink
Merge pull request #499 from JiabinYang/deemd2paddle
Browse files Browse the repository at this point in the history
Deepmd2paddle
  • Loading branch information
amcadmus authored Apr 13, 2021
2 parents 1a06aa4 + c24e33e commit 9426f1c
Show file tree
Hide file tree
Showing 9 changed files with 2,378 additions and 0 deletions.
17 changes: 17 additions & 0 deletions deepmd/load_paddle_op.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from paddle.utils.cpp_extension import CppExtension, CUDAExtension, setup

setup(
name='paddle_ops',
ext_modules=CppExtension(
sources=['../source/op/paddle_ops/srcs/pd_prod_env_mat_multi_devices_cpu.cc',
'../source/op/paddle_ops/srcs/pd_prod_env_mat_multi_devices_cuda.cc',
'../source/op/paddle_ops/srcs/pd_prod_force_se_a_multi_devices_cpu.cc',
'../source/op/paddle_ops/srcs/pd_prod_force_se_a_multi_devices_cuda.cc',
'../source/op/paddle_ops/srcs/pd_prod_virial_se_a_multi_devices_cpu.cc',
'../source/op/paddle_ops/srcs/pd_prod_virial_se_a_multi_devices_cuda.cc'],
include_dirs=["../source/lib/include/","/usr/local/cuda-10.1/targets/x86_64-linux/include/"],
library_dirs=["../build/lib/", "/usr/local/cuda-10.1/lib64"],
extra_link_args=["-ldeepmd","-lcudart"]
)
)

Loading

0 comments on commit 9426f1c

Please sign in to comment.