Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/master' into langjian/DistBroadcast
Browse files Browse the repository at this point in the history
  • Loading branch information
jianyinglang committed Dec 26, 2018
2 parents b32b52f + db3e8d8 commit a465739
Show file tree
Hide file tree
Showing 5 changed files with 281 additions and 181 deletions.
21 changes: 13 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -200,16 +200,21 @@ if(UNIT_TEST_TF_CC_DIR)
endif()

# Enable build target CPU features
set(
NGRAPH_TARGET_ARCH
native
CACHE STRING "Target CPU architecture to build for.")
if (NOT DEFINED NGRAPH_TARGET_ARCH)
set(
NGRAPH_TARGET_ARCH
native
CACHE STRING "Target CPU architecture to build for.")
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=${NGRAPH_TARGET_ARCH}")

set(
NGRAPH_TUNE_ARCH
native
CACHE STRING "Target CPU architecture to tune for")
if (NOT DEFINED NGRAPH_TUNE_ARCH)
set(
NGRAPH_TUNE_ARCH
native
CACHE STRING "Target CPU architecture to build for.")
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mtune=${NGRAPH_TARGET_ARCH}")

message(STATUS "UNIT_TEST_ENABLE: ${UNIT_TEST_ENABLE}")
message(STATUS "UNIT_TEST_TF_CC_DIR: ${TF_PRE_BUILT_LOCATION}")
Expand Down
Loading

0 comments on commit a465739

Please sign in to comment.