File tree Expand file tree Collapse file tree 3 files changed +16
-7
lines changed
GPU/GPUTracking/Standalone Expand file tree Collapse file tree 3 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,12 @@ if (GPUCA_BUILD_DEBUG_SANITIZE)
6565 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -shared-libasan" )
6666 endif ()
6767endif ()
68- string (APPEND CMAKE_CXX_FLAGS " -Wno-error -Wall -Wextra -Wshadow -Wno-unused-function -Wno-unused-parameter -Wno-unused-local-typedefs -Wno-unknown-pragmas -Wno-write-strings" )
68+ if (GPUCA_CONFIG_WERROR)
69+ string (APPEND CMAKE_CXX_FLAGS " -Werror -Wno-unknown-warning-option" )
70+ else ()
71+ string (APPEND CMAKE_CXX_FLAGS " -Wno-error" )
72+ endif ()
73+ string (APPEND CMAKE_CXX_FLAGS " -Wall -Wextra -Wshadow -Wno-unused-function -Wno-unused-parameter -Wno-unused-local-typedefs -Wno-unknown-pragmas -Wno-write-strings" )
6974string (APPEND CMAKE_SHARED_LINKER_FLAGS " -rdynamic -Wl,--no-undefined" )
7075if (CMAKE_CXX_COMPILER MATCHES "clang\\ +\\ +" )
7176 string (APPEND CMAKE_CXX_FLAGS " -Wno-vla-cxx-extension" )
Original file line number Diff line number Diff line change 77mkdir -p standalone/build
88pushd standalone/build
99cp $1 /GPU/GPUTracking/Standalone/cmake/config.cmake .
10- cat >> config.cmake << "EOF "
11- set(ENABLE_CUDA 1)
12- set(ENABLE_HIP 1)
13- set(ENABLE_OPENCL 1)
14- set(GPUCA_CONFIG_ONNX 1)
15- set(GPUCA_BUILD_EVENT_DISPLAY 0)
10+ if [[ $GPUCA_STANDALONE_CI == 1 ]]; then
11+ cat >> config.cmake << "EOF "
12+ set(ENABLE_CUDA 1)
13+ set(ENABLE_HIP 1)
14+ set(ENABLE_OPENCL 1)
15+ set(GPUCA_CONFIG_ONNX 1)
16+ set(GPUCA_BUILD_EVENT_DISPLAY 0)
17+ set(GPUCA_CONFIG_WERROR 1)
1618EOF
19+ fi
1720cmake -DCMAKE_INSTALL_PREFIX=../ $1 /GPU/GPUTracking/Standalone
1821make ${JOBS+-j $JOBS } install
1922popd
Original file line number Diff line number Diff line change @@ -38,4 +38,5 @@ set(CUDA_COMPUTETARGET "default") # 86 89
3838#set(GPUCA_RTC_NO_COMPILED_KERNELS 1)
3939#set(GPUCA_KERNEL_RESOURCE_USAGE_VERBOSE 1)
4040#set(GPUCA_CONFIG_COMPILER gcc) # gcc / clang
41+ #set(GPUCA_CONFIG_WERROR 1)
4142#add_definitions(-DGPUCA_GPU_DEBUG_PRINT)
You can’t perform that action at this time.
0 commit comments