Skip to content
Snippets Groups Projects
Commit 3d40f2a6 authored by Nandhana Sakhtivel's avatar Nandhana Sakhtivel
Browse files

Changes in total time calculation

parent 515c0d6a
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,10 @@ ...@@ -6,6 +6,10 @@
void init(int index) void init(int index)
{ {
clock_gettime(CLOCK_MONOTONIC, &begin0);
start0 = clock();
// DAV: the corresponding KernelLen is calculated within the wstack function. It can be anyway hardcoded for optimization // DAV: the corresponding KernelLen is calculated within the wstack function. It can be anyway hardcoded for optimization
dx = 1.0/(double)param.grid_size_x; dx = 1.0/(double)param.grid_size_x;
dw = 1.0/(double)param.num_w_planes; dw = 1.0/(double)param.num_w_planes;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
int main(int argc, char * argv[]) int main(int argc, char * argv[])
{ {
if(argc > 1) if(argc > 1)
{ {
strcpy(in.paramfile,argv[1]); strcpy(in.paramfile,argv[1]);
...@@ -17,9 +18,6 @@ int main(int argc, char * argv[]) ...@@ -17,9 +18,6 @@ int main(int argc, char * argv[])
exit(1); exit(1);
} }
clock_gettime(CLOCK_MONOTONIC, &begin0);
start0 = clock();
/* Initializing MPI Environment */ /* Initializing MPI Environment */
#ifdef USE_MPI #ifdef USE_MPI
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment