Add cache measurements for versions with and without force computation
Signed-off-by: Rafael Ravedutti <rafaelravedutti@gmail.com>
This commit is contained in:
@@ -212,7 +212,7 @@ int main(int argc, const char *argv[]) {
|
||||
double S, E;
|
||||
S = getTimeStamp();
|
||||
for(int i = 0; i < param.ntimes; i++) {
|
||||
computeForce(¶m, atom, &neighbor, 0, param.every);
|
||||
computeForce(¶m, atom, &neighbor, 0, i + 1, param.every);
|
||||
}
|
||||
E = getTimeStamp();
|
||||
double T_accum = E-S;
|
||||
|
Reference in New Issue
Block a user