From b63412ff9c45a9b66cda0003fe66aa7e1b626361 Mon Sep 17 00:00:00 2001 From: Hicham Agueny <95568317+HichamAgueny@users.noreply.github.com> Date: Tue, 20 Feb 2024 15:07:05 +0100 Subject: [PATCH 1/3] add hipDeviceSynchronize --- GPUSimulators/FORCE.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/GPUSimulators/FORCE.py b/GPUSimulators/FORCE.py index ebf4416..205c4d7 100644 --- a/GPUSimulators/FORCE.py +++ b/GPUSimulators/FORCE.py @@ -187,9 +187,11 @@ class FORCE (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)) 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 2/3] 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)) From ffb0707c265b9a9fa9c6647f74268143c1e9ad70 Mon Sep 17 00:00:00 2001 From: Hicham Agueny <95568317+HichamAgueny@users.noreply.github.com> Date: Tue, 20 Feb 2024 15:08:34 +0100 Subject: [PATCH 3/3] add hipDeviceSynchronize --- GPUSimulators/HLL2.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GPUSimulators/HLL2.py b/GPUSimulators/HLL2.py index b248eb2..e9b1313 100644 --- a/GPUSimulators/HLL2.py +++ b/GPUSimulators/HLL2.py @@ -177,9 +177,10 @@ class HLL2 (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))