ROCm / hipfort

Fortran interfaces for ROCm libraries
https://rocm.docs.amd.com/projects/hipfort/en/latest/
Other
68 stars 37 forks source link

Export hipfort CMake targets #122

Closed cgmb closed 12 months ago

cgmb commented 12 months ago

If the ROCm math libraries are available at configuration-time, the hipfort project will generate CMake targets for their fortran bindings. To use the hipfort bindings, use

find_package(hipfort COMPONENTS <libraries>)

where is a space-delimited list of the C package names (e.g., hip rocblas). The hipfort targets this provides are named the same as the targets from the C libraries, but are found in the hipfort namespace (e.g., hip::host becomes hipfort::host and roc::rocblas becomes hipfort::rocblas).

At the moment, targets are only provided for the AMD backend.