From a06b48cd4c40ed59da9363ac1c8e9c79db491085 Mon Sep 17 00:00:00 2001 From: Azamat Mametjanov Date: Wed, 20 Dec 2023 04:30:16 +0000 Subject: [PATCH] Work around ifx ICE with ifort --- cime_config/machines/Depends.oneapi-ifx.cmake | 3 +++ cime_config/machines/Depends.oneapi-ifxgpu.cmake | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 cime_config/machines/Depends.oneapi-ifx.cmake diff --git a/cime_config/machines/Depends.oneapi-ifx.cmake b/cime_config/machines/Depends.oneapi-ifx.cmake new file mode 100644 index 000000000000..8b51086df4a9 --- /dev/null +++ b/cime_config/machines/Depends.oneapi-ifx.cmake @@ -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") diff --git a/cime_config/machines/Depends.oneapi-ifxgpu.cmake b/cime_config/machines/Depends.oneapi-ifxgpu.cmake index ca694c2c1c95..0dd35e56bcc9 100644 --- a/cime_config/machines/Depends.oneapi-ifxgpu.cmake +++ b/cime_config/machines/Depends.oneapi-ifxgpu.cmake @@ -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")