Skip to content

Commit

Permalink
Removing explicit check for cori or edison
Browse files Browse the repository at this point in the history
and replacing it with a check for Cray KNL
  • Loading branch information
khuck committed Jan 22, 2021
1 parent 91ee0a9 commit 318e6b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,7 @@ if (RCR_FOUND)
add_definitions(-DAPEX_HAVE_RCR)
else()
#if(EXISTS "/sys/cray/pm_counter/power")
IF(("${HOST_BASENAME}" STREQUAL "edison") OR ("$ENV{NERSC_HOST}" STREQUAL "edison") OR
("${HOST_BASENAME}" STREQUAL "cori") OR ("$ENV{NERSC_HOST}" STREQUAL "cori"))
IF("$ENV{CRAY_CPU_TARGET}" STREQUAL "mic-knl")
#add_definitions(-fPIC)
set (APEX_HAVE_CRAY_POWER TRUE)
add_definitions(-DAPEX_HAVE_CRAY_POWER)
Expand Down
6 changes: 2 additions & 4 deletions src/apex/CMakeLists.hpx
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,10 @@ if(EXISTS "/proc/stat" AND NOT APEX_DISABLE_PROC)
set(proc_sources proc_read.cpp)
endif()

if("${HOST_BASENAME}" STREQUAL "edison")
hpx_info("apex" "This is Edison, will build with Cray Power support")
IF("$ENV{CRAY_CPU_TARGET}" STREQUAL "mic-knl")
hpx_info("apex" "This is Cray KNL, will build with Cray Power support")
set(APEX_HAVE_CRAY_POWER TRUE)
target_compile_definitions(apex_flags INTERFACE APEX_HAVE_CRAY_POWER)
else()
hpx_info("apex" "This is not edison")
endif()

if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
Expand Down

0 comments on commit 318e6b1

Please sign in to comment.