Skip to content

Commit

Permalink
Merge pull request #108 from stanleytsang-amd/xnack
Browse files Browse the repository at this point in the history
Adding XNACK flags
  • Loading branch information
stanleytsang-amd authored Sep 8, 2020
2 parents 440357f + 093dd28 commit 65ad944
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ include(cmake/VerifyCompiler.cmake)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra")

# Set XNACK flags
set(XNACK_FLAGS "-mno-xnack -Xarch_gfx906 -msram-ecc -Xarch_gfx908 -msram-ecc")

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra ${XNACK_FLAGS}")

# Build options
option(BUILD_TEST "Build tests (requires googletest)" OFF)
Expand Down

0 comments on commit 65ad944

Please sign in to comment.