Skip to content

Commit

Permalink
Set HIP includes as system to avoid excessive warnings (LLNL#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbeckingsale authored Jul 3, 2019
1 parent 543fb01 commit 0c47923
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmake/thirdparty/SetupHIP.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ set(HIP_RUNTIME_COMPILE_FLAGS "${HIP_RUNTIME_COMPILE_FLAGS};-D${HIP_RUNTIME_DEFI
# through a hip compiler (hipcc)
blt_register_library(NAME hip
INCLUDES ${HIP_INCLUDE_DIRS}
LIBRARIES ${HIP_LIBRARIES})
LIBRARIES ${HIP_LIBRARIES}
TREAT_INCLUDES_AS_SYSTEM ON)

# depend on 'hip_runtime', if you only need to use hip
# headers or link to hip libs, but don't need to run your source
Expand All @@ -41,4 +42,5 @@ blt_register_library(NAME hip_runtime
INCLUDES ${HIP_RUNTIME_INCLUDE_DIRS}
DEFINES ${HIP_RUNTIME_DEFINES}
COMPILE_FLAGS ${HIP_RUNTIME_COMPILE_FLAGS}
LIBRARIES ${HIP_RUNTIME_LIBRARIES})
LIBRARIES ${HIP_RUNTIME_LIBRARIES}
TREAT_INCLUDES_AS_SYSTEM ON)

0 comments on commit 0c47923

Please sign in to comment.