Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Latest commit

 

History

History
20 lines (14 loc) · 814 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 814 Bytes

Warning

Superseded by https://github.com/UoB-HPC/CloverLeaf, which contains a HIP implementation, along with many other models.

CloverLeaf HIP

A version of CloverLeaf ported to HIP using the hipify-perl tool. In this case, many manual changes were needed after running the tool because the original port involves three languages which is probably too much for some perl regex script.

Compilation

This is an example to make Cloverleaf on a Cray machine:

HIP_HOME=/opt/rocm-4.5.1/hip/ make COMPILER=CRAY AMDGCN_ARCH=gfx908 -j 6 C_MPI_COMPILER=cc MPI_COMPILER=ftn 
  • COMPILER is the same as with the other implementations.
  • AMDGCN_ARCH is the architecture - in the form of gfxXXX
  • Job number only affects parallel build of *.cu files
  • (C_)MPI_COMPILER affects which compiler to use