ROCm / hipfort

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

[Feature]: Accept standard CMake input conventions #176

Open bcornille opened 1 month ago

bcornille commented 1 month ago

Suggestion Description

The current use of HIPFORT_ prefixed setting variables is a very non-standard way to effect a number of build options. Overwriting various CMAKE_ prefixed settings prevents users from using the commonly accepted ways of specifying, compiler, flags, and install directory. This will be confusing for users that are well versed in CMake. The hard-coded default compiler path is also problematic as this does not respect environment variables like FC, which is a commonly accepted way to specify a Fortran compiler for most build systems.

Suggested changes:

I am willing to provide patches for some of these changes.

Operating System

No response

GPU

No response

ROCm Component

No response

cgmb commented 1 month ago

I agree on all counts. The library build is a bit weird. This has been on my todo list, but there's a lot of things that are a higher priority. It would be a while before I could work on it.

I am willing to provide patches for some of these changes.

That would certainly speed up the process. I will happily review and merge PRs that make the build process more idiomatic.