Skip to content

Commit 73cbc95

Browse files
authored
Merge pull request #430 from GEOS-ESM/feature/mathomp4/v4-remove-sles15-detection
v4: Remove NCCS OS detection
2 parents 40179ea + 3b28a6e commit 73cbc95

File tree

2 files changed

+2
-26
lines changed

2 files changed

+2
-26
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
### Removed
1313

14+
- Remove code for finding OS at NCCS as system is now all SLES15
15+
1416
### Added
1517

1618
### Changed

external_libraries/DetermineSite.cmake

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,6 @@ set(DETECTED_SITE "UNKNOWN")
1111

1212
if (${BUILD_SITE} MATCHES "discover*" OR ${BUILD_SITE} MATCHES "borg*" OR ${BUILD_SITE} MATCHES "warp*")
1313
set (DETECTED_SITE "NCCS")
14-
# NCCS now has two OSs. We need to detect if we are on SLES 15. If so, we set a flag "BUILT_ON_SLES15"
15-
# which we will use to make sure people building on SLES15 run on SLES15
16-
# The commmand we use in bash is:
17-
# grep VERSION_ID /etc/os-release | cut -d= -f2 | cut -d. -f1 | sed 's/"//g'
18-
execute_process(
19-
COMMAND grep VERSION_ID /etc/os-release
20-
COMMAND cut -d= -f2
21-
COMMAND cut -d. -f1
22-
COMMAND sed s/\"//g
23-
OUTPUT_VARIABLE OS_RELEASE
24-
OUTPUT_STRIP_TRAILING_WHITESPACE
25-
)
26-
if (OS_RELEASE STREQUAL "15")
27-
set (BUILT_ON_SLES15 TRUE)
28-
else ()
29-
set (BUILT_ON_SLES15 FALSE)
30-
endif ()
3114
elseif (${BUILD_SITE} MATCHES "pfe" OR ${BUILD_SITE} MATCHES "r[0-9]*i[0-9]*n[0-9]*" OR ${BUILD_SITE} MATCHES "r[0-9]*c[0-9]*t[0-9]*n[0-9]*")
3215
set (DETECTED_SITE "NAS")
3316
elseif (EXISTS /ford1/share/gmao_SIteam AND EXISTS /ford1/local AND ${CMAKE_SYSTEM_NAME} MATCHES "Linux")
@@ -80,12 +63,3 @@ endif ()
8063

8164
set(GEOS_SITE ${DETECTED_SITE} CACHE STRING "Detected site for use with GEOS setup scripts")
8265
message(STATUS "Setting GEOS_SITE to ${GEOS_SITE}")
83-
84-
if (DETECTED_SITE STREQUAL "NCCS")
85-
if (BUILT_ON_SLES15)
86-
message(STATUS "Building on SLES15 at NCCS. Can only run on Milan processors")
87-
else ()
88-
message(STATUS "Building on SLES12 at NCCS. Can run on Cascade Lake or Skylake processors")
89-
endif ()
90-
endif ()
91-

0 commit comments

Comments
 (0)