Skip to content

Commit 1a7b129

Browse files
authored
ci: fix cuda issue & MSVC spurious warning (#3950)
* ci: fix cuda issue * ci: cuda 11.3-11.4 produce warnings -> errors * tests: ignore unused warning for MSVC * Update tests/CMakeLists.txt
1 parent 72eea20 commit 1a7b129

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,8 @@ jobs:
315315
# Testing NVCC; forces sources to behave like .cu files
316316
cuda:
317317
runs-on: ubuntu-latest
318-
name: "🐍 3.8 • CUDA 11 • Ubuntu 20.04"
319-
container: nvidia/cuda:11.0-devel-ubuntu20.04
318+
name: "🐍 3.8 • CUDA 11.2 • Ubuntu 20.04"
319+
container: nvidia/cuda:11.2.2-devel-ubuntu20.04
320320

321321
steps:
322322
- uses: actions/checkout@v3

tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ endif()
351351
# Compile with compiler warnings turned on
352352
function(pybind11_enable_warnings target_name)
353353
if(MSVC)
354-
target_compile_options(${target_name} PRIVATE /W4)
354+
target_compile_options(${target_name} PRIVATE /W4 /wd4189)
355355
elseif(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Intel|Clang)" AND NOT PYBIND11_CUDA_TESTS)
356356
target_compile_options(
357357
${target_name}

0 commit comments

Comments
 (0)