From e6c770cbee5eeba91642984793112623165356e3 Mon Sep 17 00:00:00 2001 From: jpekkila Date: Tue, 9 Jul 2019 19:00:08 +0300 Subject: [PATCH] Added a synchronization after acLoadDeviceConstant since it is now stated to be asynchronous --- src/standalone/model/host_forcing.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/standalone/model/host_forcing.cc b/src/standalone/model/host_forcing.cc index 6cc5a14..423bf19 100644 --- a/src/standalone/model/host_forcing.cc +++ b/src/standalone/model/host_forcing.cc @@ -226,8 +226,7 @@ loadForcingParamsToDevice(const ForcingParams& forcing_params) acLoadDeviceConstant(AC_ff_hel_imz, forcing_params.ff_hel_im.z); acLoadDeviceConstant(AC_kaver, forcing_params.kaver); - // acSynchronizeStream(STREAM_ALL); // This will be needed in the future when the interface - // functions are guaranteed to be asynchronous + acSynchronizeStream(STREAM_ALL); } /** This function would be used in autotesting to update the forcing params of the host