Skip to content

Commit

Permalink
Remove -hzero flag from CMAKE_Fortran_FLAGS
Browse files Browse the repository at this point in the history
The -hzero flag causes an Internal Compiler Error (ICE) on
PhenologyMod.F90 when using cce/17.0.0.

This workaround was provided by Andrew Bradley.
  • Loading branch information
dqwu committed Jul 22, 2024
1 parent b713500 commit 42baef2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if (compile_threaded)
string(APPEND CMAKE_EXE_LINKER_FLAGS " -fopenmp")
endif()

string(APPEND CMAKE_Fortran_FLAGS " -hipa0 -hzero -f free")
string(APPEND CMAKE_Fortran_FLAGS " -hipa0 -f free")

string(APPEND CMAKE_EXE_LINKER_FLAGS " -L$ENV{ROCM_PATH}/lib -lamdhip64 -L/opt/gcc/12.2.0/snos/lib64")
string(APPEND CMAKE_CXX_FLAGS " -I$ENV{ROCM_PATH}/include")
Expand Down

0 comments on commit 42baef2

Please sign in to comment.