Skip to content

Commit

Permalink
Disable openmp-offload
Browse files Browse the repository at this point in the history
  • Loading branch information
amametjanov committed Aug 28, 2024
1 parent bd79ca9 commit 6ae0588
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions cime_config/machines/Depends.oneapi-ifxgpu.cmake
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@

set(CPPDEFS "${CPPDEFS} -DMPAS_OPENMP_OFFLOAD")
list(APPEND MPAS_ADD_ACC_FLAGS
${CMAKE_BINARY_DIR}/core_seaice/shared/mpas_seaice_mesh_pool.f90
${CMAKE_BINARY_DIR}/core_seaice/shared/mpas_seaice_velocity_solver_variational.f90
${CMAKE_BINARY_DIR}/core_seaice/shared/mpas_seaice_velocity_solver.f90
)

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")
if (NOT MPILIB STREQUAL "openmpi")
e3sm_add_flags("${CMAKE_BINARY_DIR}/core_seaice/model_forward/mpas_seaice_core_interface.f90" "-fc=ifort")
endif()

0 comments on commit 6ae0588

Please sign in to comment.