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 14:46:12 +01:00
commit 6a11b0e3ab
2 changed files with 8 additions and 9 deletions

View File

@ -108,7 +108,7 @@ class EE2D_KP07_dimsplit (BaseSimulator):
#self.kernel = module.get_function("KP07DimsplitKernel")
#self.kernel.prepare("iiffffffiiPiPiPiPiPiPiPiPiPiiii")
#
kernel_file_path = os.path.abspath(os.path.join('cuda', 'EE2D_KP07_dimsplit.cu'))
kernel_file_path = os.path.abspath(os.path.join('cuda', 'EE2D_KP07_dimsplit.cu.hip'))
with open(kernel_file_path, 'r') as file:
kernel_source = file.read()

View File

@ -88,7 +88,7 @@ class FORCE (Simulator.BaseSimulator):
self.g = np.float32(g)
#Get kernels
# module = context.get_module("cuda/SWE2D_FORCE.cu",
# module = context.get_module("cuda/SWE2D_FORCE.cu.hip",
# defines={
# 'BLOCK_WIDTH': self.block_size[0],
# 'BLOCK_HEIGHT': self.block_size[1]
@ -187,7 +187,6 @@ class FORCE (Simulator.BaseSimulator):
)
)
)
self.u0, self.u1 = self.u1, self.u0
hip_check(hip.hipDeviceSynchronize())