Skip to content

Commit

Permalink
Work around ifx ICE with ifort
Browse files Browse the repository at this point in the history
  • Loading branch information
amametjanov committed Dec 20, 2023
1 parent 4728bc4 commit a06b48c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cime_config/machines/Depends.oneapi-ifx.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

# compile mpas_seaice_core_interface.f90 with ifort, not ifx
e3sm_add_flags("${CMAKE_BINARY_DIR}/core_seaice/model_forward/mpas_seaice_core_interface.f90" "-fc=ifort")
3 changes: 3 additions & 0 deletions cime_config/machines/Depends.oneapi-ifxgpu.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ list(APPEND MPAS_ADD_ACC_FLAGS
foreach(ITEM IN LISTS MPAS_ADD_ACC_FLAGS)
e3sm_add_flags("${ITEM}" "-fiopenmp -fopenmp-targets=spir64")
endforeach()

# compile mpas_seaice_core_interface.f90 with ifort, not ifx
e3sm_add_flags("${CMAKE_BINARY_DIR}/core_seaice/model_forward/mpas_seaice_core_interface.f90" "-fc=ifort")

0 comments on commit a06b48c

Please sign in to comment.