mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-25 22:52:01 +00:00
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
This commit is contained in:
parent
72eea20afd
commit
1a7b12983e
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -315,8 +315,8 @@ jobs:
|
|||||||
# Testing NVCC; forces sources to behave like .cu files
|
# Testing NVCC; forces sources to behave like .cu files
|
||||||
cuda:
|
cuda:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: "🐍 3.8 • CUDA 11 • Ubuntu 20.04"
|
name: "🐍 3.8 • CUDA 11.2 • Ubuntu 20.04"
|
||||||
container: nvidia/cuda:11.0-devel-ubuntu20.04
|
container: nvidia/cuda:11.2.2-devel-ubuntu20.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
@ -351,7 +351,7 @@ endif()
|
|||||||
# Compile with compiler warnings turned on
|
# Compile with compiler warnings turned on
|
||||||
function(pybind11_enable_warnings target_name)
|
function(pybind11_enable_warnings target_name)
|
||||||
if(MSVC)
|
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)
|
elseif(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Intel|Clang)" AND NOT PYBIND11_CUDA_TESTS)
|
||||||
target_compile_options(
|
target_compile_options(
|
||||||
${target_name}
|
${target_name}
|
||||||
|
Loading…
Reference in New Issue
Block a user