Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler error with gcc+hip #662

Open
yslan opened this issue Nov 1, 2023 · 0 comments
Open

Compiler error with gcc+hip #662

yslan opened this issue Nov 1, 2023 · 0 comments

Comments

@yslan
Copy link

yslan commented Nov 1, 2023

Hi,

Is it possible to split the hip compiler from the wrapper? The current hip build seems to only support clang.

if(CMAKE_Fortran_COMPILER_ID STREQUAL "Cray" AND CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 15.0.0)
set(_blt_hip_compile_flags "$<$<COMPILE_LANGUAGE:CXX>:SHELL:--rocm-path=${ROCM_PATH}>")
else()
set(_blt_hip_compile_flags "--rocm-path=${ROCM_PATH}")
endif()

I'm trying to compile Ascent on Frontier using PrgEnv-gnu, but the gcc doesn't support hip yet.

g++: error: unrecognized command-line option '--rocm-path=/opt/rocm-5.3.0'

Alpine-DAV/ascent#1192

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant