Skip to content

Realm CMake build system defaults to wrong compiler when compiling with Kokkos + ROCm #1902

@rbberger

Description

@rbberger

Noticed while testing the GitLab master.

In the Spack package we're setting CMAKE_CXX_COMPILER and CMAKE_C_COMPILER to hipcc when building for ROCm. This isn't propagated to the Realm CMake build, which causes it to use some default compiler (like GCC). Since Kokkos (kokkos+rocm) injects hipcc/amdclang specific compilation flags, that then fails.

The suggested fix for this is to propagate CMAKE_CXX_COMPILER and CMAKE_C_COMPILER of Legion to the Realm build options.

The above is not true. See below. But the wrong compiler is being used or the amdclang compilation flags get applied to too many files.

https://gitlab.com/StanfordLegion/legion/-/blob/master/CMakeLists.txt#L834-867

Metadata

Metadata

Assignees

Labels

BuildIssues pertaining to build systemsbug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions