Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@ jobs:
CXXFLAGS: "-Werror"
CMAKE_GENERATOR: Ninja
steps:
- name: Free More Disk Space
uses: ax3l/free-disk-space@main
with:
tool-cache: false
android: true
dotnet: true
haskell: true
large-packages: false # apt takes ~1:30min
docker-images: true
swap-storage: false

- uses: actions/checkout@v5

- name: install dependencies
Expand Down
8 changes: 7 additions & 1 deletion cmake/ImpactXFunctions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,13 @@ function(impactx_set_compile_warnings tgt)
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "AppleClang")
target_compile_options(${tgt} PRIVATE -Wall -Wextra -Wpedantic -Wshadow -Woverloaded-virtual -Wextra-semi -Wunreachable-code)
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
target_compile_options(${tgt} PRIVATE -Wall -Wextra -Wpedantic -Wshadow -Woverloaded-virtual -Wunreachable-code -Wno-array-bounds)
target_compile_options(${tgt} PRIVATE -Wall -Wextra -Wshadow -Woverloaded-virtual -Wunreachable-code -Wno-array-bounds)
if(NOT ImpactX_COMPUTE STREQUAL CUDA)
# In older NVCC, -Wpedantic causes "warning: style of line directive is a GCC extension"
target_compile_options(${tgt} PRIVATE -Wpedantic)
else()

endif()
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
# Warning C4503: "decorated name length exceeded, name was truncated"
# Symbols longer than 4096 chars are truncated (and hashed instead)
Expand Down
Loading