From 7d1458b118b3857bab4a7a6a50d7863bb3556850 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Mon, 16 May 2022 14:37:05 -0400 Subject: [PATCH 1/4] ci: fix cuda issue --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2f295614e1..5fd68cd34a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -315,8 +315,8 @@ jobs: # Testing NVCC; forces sources to behave like .cu files cuda: runs-on: ubuntu-latest - name: "🐍 3.8 • CUDA 11 • Ubuntu 20.04" - container: nvidia/cuda:11.0-devel-ubuntu20.04 + name: "🐍 3.8 • CUDA 11.4 • Ubuntu 20.04" + container: nvidia/cuda:11.4.0-devel-ubuntu20.04 steps: - uses: actions/checkout@v3 From b46553bc40e0bc2bfe59e75317f73628b114c2d0 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Mon, 16 May 2022 15:50:28 -0400 Subject: [PATCH 2/4] ci: cuda 11.3-11.4 produce warnings -> errors --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5fd68cd34a..8b537e6e1e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -315,8 +315,8 @@ jobs: # Testing NVCC; forces sources to behave like .cu files cuda: runs-on: ubuntu-latest - name: "🐍 3.8 • CUDA 11.4 • Ubuntu 20.04" - container: nvidia/cuda:11.4.0-devel-ubuntu20.04 + name: "🐍 3.8 • CUDA 11.2 • Ubuntu 20.04" + container: nvidia/cuda:11.2.2-devel-ubuntu20.04 steps: - uses: actions/checkout@v3 From ddc1459558cb90c44ec101d27c6c4feb0782b7f3 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Mon, 16 May 2022 16:53:36 -0400 Subject: [PATCH 3/4] tests: ignore unused warning for MSVC --- tests/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index bce8cceb1e..f5e85d05cf 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -351,7 +351,7 @@ endif() # Compile with compiler warnings turned on function(pybind11_enable_warnings target_name) if(MSVC) - target_compile_options(${target_name} PRIVATE /W4) + target_compile_options(${target_name} PRIVATE /W4 /Wd4189) elseif(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Intel|Clang)" AND NOT PYBIND11_CUDA_TESTS) target_compile_options( ${target_name} From 01a3478b964e417053f5d67cf9e5e2e238f11b02 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Mon, 16 May 2022 16:58:19 -0400 Subject: [PATCH 4/4] Update tests/CMakeLists.txt --- tests/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index f5e85d05cf..a14b520a5f 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -351,7 +351,7 @@ endif() # Compile with compiler warnings turned on function(pybind11_enable_warnings target_name) if(MSVC) - target_compile_options(${target_name} PRIVATE /W4 /Wd4189) + target_compile_options(${target_name} PRIVATE /W4 /wd4189) elseif(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Intel|Clang)" AND NOT PYBIND11_CUDA_TESTS) target_compile_options( ${target_name}