Skip to content

Commit

Permalink
cmakelist.txt change for cheyenne_gnu_fms_mpp_util_mpi_inc.patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikyung Lee authored and Mikyung Lee committed Feb 9, 2021
1 parent 4aefdec commit 7cc77ba
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions CMakeLists.txt
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,19 @@ if(CMAKE_Platform)
else()
message("Platform '${CMAKE_Platform}' configuration file does not exist")
endif()
# DH* 20210208 temporary workaround for FMS issues on Cheyenne with GNU 9.1.0
if (CMAKE_Platform MATCHES "cheyenne.gnu")
message("Applying patch cheyenne_gnu_fms_mpp_util_mpi_inc.patch")
execute_process(COMMAND patch -N -p0 INPUT_FILE cheyenne_gnu_fms_mpp_util_mpi_inc.patch
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
OUTPUT_FILE ${CMAKE_CURRENT_BINARY_DIR}/cheyenne_gnu_fms_mpp_util_mpi_inc.patch.out
ERROR_FILE ${CMAKE_CURRENT_BINARY_DIR}/cheyenne_gnu_fms_mpp_util_mpi_inc.patch.err
RESULT_VARIABLE RC)
# *DH 20210208
endif()
endif()


message("")
message("32BIT ............ ${32BIT}")
message("AVX2 ............. ${AVX2}")
Expand Down

0 comments on commit 7cc77ba

Please sign in to comment.