From 1136b9e59380d2b9ad96e5b1eb546eaa52d12522 Mon Sep 17 00:00:00 2001 From: Pengfei Xuan Date: Wed, 8 May 2024 08:47:50 -0400 Subject: [PATCH 1/2] Suppress warning #20012-D --- .github/workflows/ubuntu.yml | 2 +- CMakeLists.txt | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index eab0329..1601f80 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -3,7 +3,7 @@ name: OpenSplat (Ubuntu CUDA) on: push: branches: - - main + - fix-nvcc-warning-20012 pull_request: types: [ assigned, opened, synchronize, reopened ] release: diff --git a/CMakeLists.txt b/CMakeLists.txt index 3841b79..57f1473 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,6 +35,9 @@ set(CMAKE_POLICY_DEFAULT_CMP0077 NEW) if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.24.0") cmake_policy(SET CMP0135 NEW) endif() +# Suppress warning #20012-D (nvcc and glm) +set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} -diag-suppress=20012) + include(FetchContent) FetchContent_Declare(nlohmann_json URL https://github.com/nlohmann/json/archive/refs/tags/v3.11.3.zip From f8acd655641b032dc415a958d671b09029378114 Mon Sep 17 00:00:00 2001 From: Pengfei Xuan Date: Wed, 8 May 2024 16:51:58 -0400 Subject: [PATCH 2/2] Switch ci trigger back to the main branch --- .github/workflows/ubuntu.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 1601f80..eab0329 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -3,7 +3,7 @@ name: OpenSplat (Ubuntu CUDA) on: push: branches: - - fix-nvcc-warning-20012 + - main pull_request: types: [ assigned, opened, synchronize, reopened ] release: