Skip to content

Commit 5584a0c

Browse files
authored
Temporarily disable warnings for unknown pragmas (#942)
CUB 1.15 has uses an unprotected `#pragma nv_exec_check_disable` which makes includes of thrust headers from .cpp files fail if `-Werror` is enabled (or warn if it is not set) This PR is a temporary workaround. It just adds -Wno-unknown-pragmas to the command line for building benchmark .cpp files. Authors: - Mark Harris (https://github.com/harrism) Approvers: - Robert Maynard (https://github.com/robertmaynard) - Bradley Dice (https://github.com/bdice) URL: #942
1 parent ea807e8 commit 5584a0c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

benchmarks/CMakeLists.txt

+3-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ function(ConfigureBench BENCH_NAME)
4545
target_compile_definitions(${TEST_NAME} PUBLIC "RMM_DISABLE_CUDA_MALLOC_ASYNC")
4646
endif()
4747

48-
target_compile_options(${BENCH_NAME} PUBLIC $<$<COMPILE_LANG_AND_ID:CXX,GNU,Clang>:-Wall -Werror
49-
-Wno-error=deprecated-declarations>)
48+
target_compile_options(
49+
${BENCH_NAME} PUBLIC $<$<COMPILE_LANG_AND_ID:CXX,GNU,Clang>:-Wall -Werror
50+
-Wno-error=deprecated-declarations -Wno-unknown-pragmas>)
5051
if(DISABLE_DEPRECATION_WARNING)
5152
target_compile_options(
5253
${BENCH_NAME} PUBLIC $<$<COMPILE_LANGUAGE:CUDA>:-Xcompiler=-Wno-deprecated-declarations>)

0 commit comments

Comments
 (0)