ROCm / rocHPL

High Performance Linpack for Next-Generation AMD HPC Accelerators
Other
41 stars 20 forks source link

Force -fopenmp when using hipcc #6

Closed pbauman closed 1 year ago

pbauman commented 1 year ago

Older versions of hipcc/clang (erroneously, I think) would find omp.h without specifying the -fopenmp compiler flag nor an appropriate include path. Newer versions of hipcc coming in ROCm 6 will change this behavior and we can no longer compiler HIP files that either explicitly or implicitly include omp.h. So we add -fopenmp to HIPCC flags.

Updating the FindOpenMP behavior or depending on that is probably a better solution, but this is at least an easy fix to start from.