Skip to content

Commit cfd3795

Browse files
committed
skip gradient calc on CPU
1 parent 5b848c4 commit cfd3795

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/xdynamic.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ void xDynamic(int, char**)
160160

161161
// perform the setup functions needed to run dynamics
162162

163+
inform::gpucard = 1;
163164
tinker_f_mdinit(&dt);
164165

165166
int flags = calc::md;

test/testrt.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include "tool/error.h"
22
#include <tinker/detail/bath.hh>
3+
#include <tinker/detail/inform.hh>
34
#include <tinker/routines.h>
45

56
#include "testrt.h"
@@ -211,6 +212,7 @@ void testMdInit(double t, double atm)
211212
} else
212213
bath::isobaric = 0;
213214

215+
inform::gpucard = 1;
214216
double dt = 0.001;
215217
tinker_f_mdinit(&dt);
216218
}

0 commit comments

Comments
 (0)