From eeed7544255507c2a7785fe69a5dedea309a91cc Mon Sep 17 00:00:00 2001 From: Hicham Agueny <95568317+HichamAgueny@users.noreply.github.com> Date: Tue, 20 Feb 2024 15:07:58 +0100 Subject: [PATCH] add hipDeviceSynchronize --- GPUSimulators/HLL.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GPUSimulators/HLL.py b/GPUSimulators/HLL.py index 55d888b..885fbc3 100644 --- a/GPUSimulators/HLL.py +++ b/GPUSimulators/HLL.py @@ -180,9 +180,10 @@ class HLL (Simulator.BaseSimulator): ) ) + hip_check(hip.hipDeviceSynchronize()) + self.u0, self.u1 = self.u1, self.u0 - hip_check(hip.hipDeviceSynchronize()) hip_check(hip.hipModuleUnload(module)) hip_check(hip.hipFree(cfl_data))