cmake: fix detection of Fugaku native compilation

Change-Id: I4210e9b57223c3869464caea10c2d414e9484e14
This commit is contained in:
Masamichi Takagi
2021-02-08 13:49:41 +09:00
committed by Masamichi Takagi
parent 11b9fe0377
commit a5cf2019bc
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ if(ENABLE_TOFU)
endif()
# when compiling on a compute-node
execute_process(COMMAND bash -c "grep $(hostname) /etc/opt/FJSVfefs/config/fefs_node1.csv 2>/dev/null | cut -d, -f2"
execute_process(COMMAND bash -c "grep $(hostname) /etc/opt/FJSVfefs/config/fefs_node1.csv 2>/dev/null | cut -d, -f2 | grep -o CN"
OUTPUT_VARIABLE FUGAKU_NODE_TYPE OUTPUT_STRIP_TRAILING_WHITESPACE)
if(FUGAKU_NODE_TYPE STREQUAL "CN")
option(ENABLE_FUGAKU_HACKS "Fugaku hacks" ON)