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))