Skip to content

Commit b50455a

Browse files
authored
CI: Free Disk Space (CUDA) (#1151)
* CI: Free Disk Space (CUDA) Let's see if this solves the failing CUDA CI runners. * CUDA: `-Wno-pedantic` Noisy with the GCC in our CI * CUDA: No `-Wpedantic`
1 parent 165a27f commit b50455a

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.github/workflows/cuda.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,17 @@ jobs:
1919
CXXFLAGS: "-Werror"
2020
CMAKE_GENERATOR: Ninja
2121
steps:
22+
- name: Free More Disk Space
23+
uses: ax3l/free-disk-space@main
24+
with:
25+
tool-cache: false
26+
android: true
27+
dotnet: true
28+
haskell: true
29+
large-packages: false # apt takes ~1:30min
30+
docker-images: true
31+
swap-storage: false
32+
2233
- uses: actions/checkout@v5
2334

2435
- name: install dependencies

cmake/ImpactXFunctions.cmake

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,13 @@ function(impactx_set_compile_warnings tgt)
190190
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "AppleClang")
191191
target_compile_options(${tgt} PRIVATE -Wall -Wextra -Wpedantic -Wshadow -Woverloaded-virtual -Wextra-semi -Wunreachable-code)
192192
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
193-
target_compile_options(${tgt} PRIVATE -Wall -Wextra -Wpedantic -Wshadow -Woverloaded-virtual -Wunreachable-code -Wno-array-bounds)
193+
target_compile_options(${tgt} PRIVATE -Wall -Wextra -Wshadow -Woverloaded-virtual -Wunreachable-code -Wno-array-bounds)
194+
if(NOT ImpactX_COMPUTE STREQUAL CUDA)
195+
# In older NVCC, -Wpedantic causes "warning: style of line directive is a GCC extension"
196+
target_compile_options(${tgt} PRIVATE -Wpedantic)
197+
else()
198+
199+
endif()
194200
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
195201
# Warning C4503: "decorated name length exceeded, name was truncated"
196202
# Symbols longer than 4096 chars are truncated (and hashed instead)

0 commit comments

Comments
 (0)