Skip to content

Commit

Permalink
Merge branch 'fix.hawk.debug' into 'master.dev'
Browse files Browse the repository at this point in the history
[fix.hawk.debug] Fixed inquiry when compiling on hawk. Always use fully qualified domain name (FQDN)

See merge request piclas/piclas!760
  • Loading branch information
pnizenkov committed Jan 26, 2023
2 parents 68fad44 + f279a23 commit 77beb27
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions CMakeListsLib.txt
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,16 @@ IF(NOT LIBS_BUILD_MATH_LIB)
ENDIF()

# VDM inverse, replace lapack with analytical solution
IF (CMAKE_BUILD_TYPE MATCHES "Debug" AND "${CMAKE_HOSTNAME}" MATCHES "login" AND "${LSB_RELEASE_ID_SHORT}" MATCHES "CentOS")
MESSAGE(STATUS "Compiling PICLas in debug mode on Hawk with system math lib. Setting VDM inverse to analytical solution")
ADD_DEFINITIONS(-DVDM_ANALYTICAL)
# HLRS HAWK / SuperMUC + DEBUG
IF (CMAKE_BUILD_TYPE MATCHES "Debug" AND "${CMAKE_HOSTNAME}" MATCHES "login")
# HAWK and SuperMUC name their login nodes identically, so use the Fully Qualified Domain Name (FQDN) to identify
CMAKE_HOST_SYSTEM_INFORMATION(RESULT FQDN QUERY FQDN)
MARK_AS_ADVANCED(FORCE FQDN)
# HLRS HAWK
IF ("${FQDN}" MATCHES "hawk.hww.hlrs.de")
MESSAGE(STATUS "Compiling PICLas in debug mode on Hawk with system math lib. Setting VDM inverse to analytical solution")
ADD_DEFINITIONS(-DVDM_ANALYTICAL)
ENDIF()
ENDIF()

# Build LAPACK/OpenBLAS in FLEXI
Expand Down

0 comments on commit 77beb27

Please sign in to comment.