Merge branch 'porting-to-hip' of https://github.com/HichamAgueny/FiniteVolumeGPU_HIP into porting-to-hip

This commit is contained in:
Hicham Agueny 2024-02-20 15:15:35 +01:00
commit 89977f9688
3 changed files with 7 additions and 3 deletions

View File

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

View File

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

View File

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