Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bugs on water forces when using adaptive region. Fix bugs in CUDA platform running. Update scripts for 6zfv. #16

Merged
merged 24 commits into from
Sep 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
0700b60
Configure CI with ci.yml (#1)
dingye18 Jan 29, 2023
dc7e048
Refactor plugin for support C API of DeePMD-kit (#6)
dingye18 Apr 28, 2023
ee13c3c
Merge branch 'master' of github.com:JingHuangLab/openmm_deepmd_plugin
dingye18 Apr 29, 2023
db5ffb0
Move pb to lfs
dingye18 May 15, 2023
70262c7
Move pb to lfs
dingye18 May 15, 2023
792b36b
Update the download link to libdeepmd_c package
dingye18 May 15, 2023
a4e96e1
Merge branch 'JingHuangLab:master' into master
dingye18 May 15, 2023
4cc25f8
update readme
dingye18 May 18, 2023
248b4a7
Merge branch 'master' of github.com:dingye18/openmm_deepmd_plugin
dingye18 May 18, 2023
9b67424
Add setGPURank function in Deep Potential model
dingye18 May 23, 2023
b0ade88
Update Readme.
dingye18 May 29, 2023
0a2ab20
Merge branch 'master' into master
dingye18 May 29, 2023
d8e4a6d
Update README (#12) (#7)
dingye18 May 29, 2023
11c331a
Add citation file
dingye18 May 29, 2023
4201f32
Merge branch 'master' of github.com:dingye18/openmm_deepmd_plugin
dingye18 May 29, 2023
2e6908f
Update citation
dingye18 May 29, 2023
926881d
Remove tests dir
dingye18 May 29, 2023
ac869e5
merge
dingye18 May 29, 2023
c6825c8
Merge branch 'JingHuangLab:master' into master
dingye18 May 29, 2023
df3af9e
Update the path to test .pb file in test files.
dingye18 Jun 7, 2023
5c3fa43
Remove redundant file
dingye18 Jun 7, 2023
4352826
Merge branch 'JingHuangLab:master' into master
dingye18 Jun 8, 2023
cc1c2c2
Fix bug on forces in water molecules. Fix bug in CUDA platform
dingye18 Sep 25, 2023
be4d4ac
Update scripts for 6zfv running
dingye18 Sep 25, 2023
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
5 changes: 5 additions & 0 deletions platforms/cuda/src/CudaDeepmdKernels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ double CudaCalcDeepmdForceKernel::execute(ContextImpl& context, bool includeForc
std::fill(dp_particles.begin(), dp_particles.end(), -1);
std::fill(dcoord.begin(), dcoord.end(), 0.);
std::fill(daparam.begin(), daparam.end(), 0.);
std::fill(dforce.begin(), dforce.end(), 0.);
std::fill(dvirial.begin(), dvirial.end(), 0.);

vector<bool> addForcesSign(natoms, false);
map<string, vector<bool>> addOrNot; // Whether to add the dp forces for selected atoms.
Expand Down Expand Up @@ -231,6 +233,9 @@ double CudaCalcDeepmdForceKernel::execute(ContextImpl& context, bool includeForc
int paddedNumAtoms = cu.getPaddedNumAtoms();
void* args[] = {&networkForces.getDevicePointer(), &cu.getForce().getDevicePointer(), &cu.getAtomIndexArray().getDevicePointer(), &tot_atoms, &paddedNumAtoms};
cu.executeKernel(addForcesKernel, args, tot_atoms);

// Clean variables for AddedForces.
std::fill(AddedForces.begin(), AddedForces.end(), 0.0);
}

if (includeEnergy){
Expand Down
43,417 changes: 0 additions & 43,417 deletions python/OpenMMDeepmdPlugin/data/1aay.crd

This file was deleted.

89,543 changes: 0 additions & 89,543 deletions python/OpenMMDeepmdPlugin/data/1aay.psf

This file was deleted.

Loading