From 2092adc0f6bc1137b4bc2f0a8f36ee8657e85c93 Mon Sep 17 00:00:00 2001 From: jpekkila Date: Fri, 5 Jul 2019 15:44:30 +0300 Subject: [PATCH] Preparations for multi-GPU optimizations --- src/core/astaroth.cu | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/astaroth.cu b/src/core/astaroth.cu index 749111c..5d16b31 100644 --- a/src/core/astaroth.cu +++ b/src/core/astaroth.cu @@ -386,7 +386,7 @@ acSynchronize(void) AcResult acBoundcondStep(void) { - acSynchronize(); + acSynchronizeStream(STREAM_ALL); if (num_devices == 1) { boundcondStep(devices[0], STREAM_PRIMARY, (int3){0, 0, 0}, subgrid.m); } @@ -445,6 +445,8 @@ acBoundcondStep(void) <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< */ } + // TODO, better to use acSynchronizeStream here and let the user call acSynchronizeHalos when + // needed acSynchronize(); return AC_SUCCESS; }