-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bd79ca9
commit 6ae0588
Showing
1 changed file
with
3 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |