Skip to content
Snippets Groups Projects
Unverified Commit 36eb3de2 authored by Recolic Keghart's avatar Recolic Keghart
Browse files

sync

parent 5dbe0fbb
No related branches found
No related tags found
No related merge requests found
......@@ -161,6 +161,8 @@ int main(int argc, char **argv) {
FILE *fsave = savename ? fopen(savename, "w") : NULL;
FILE *fsum = sumname ? fopen(sumname, "a") : NULL;
cudaDeviceReset();
_r267_stats *r267_stats = nullptr;
rlib::cuda_assert(cudaMallocManaged(&r267_stats, sizeof(_r267_stats)));
......@@ -187,8 +189,6 @@ int main(int argc, char **argv) {
//
double simulation_time = read_timer();
cudaDeviceReset();
for (int step = 0; step < NSTEPS; step++) {
r267_stats->navg = 0;
r267_stats->davg = 0.0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment