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.
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.