[Bf-blender-cvs] [fa7a6d67a80] master: Fix Cycles CUDA/HIP compiler error after recent changes

Brecht Van Lommel noreply at git.blender.org
Wed Nov 17 19:57:07 CET 2021


Commit: fa7a6d67a8084d6c26084d811ec959595aa92fdf
Author: Brecht Van Lommel
Date:   Wed Nov 17 18:46:21 2021 +0100
Branches: master
https://developer.blender.org/rBfa7a6d67a8084d6c26084d811ec959595aa92fdf

Fix Cycles CUDA/HIP compiler error after recent changes

===================================================================

M	intern/cycles/kernel/CMakeLists.txt
M	intern/cycles/util/types_float3.h

===================================================================

diff --git a/intern/cycles/kernel/CMakeLists.txt b/intern/cycles/kernel/CMakeLists.txt
index baa0e9a73d8..e7a7d226bae 100644
--- a/intern/cycles/kernel/CMakeLists.txt
+++ b/intern/cycles/kernel/CMakeLists.txt
@@ -410,7 +410,8 @@ if(WITH_CYCLES_CUDA_BINARIES)
       -I ${CMAKE_CURRENT_SOURCE_DIR}/..
       -I ${CMAKE_CURRENT_SOURCE_DIR}/device/cuda
       --use_fast_math
-      -o ${CMAKE_CURRENT_BINARY_DIR}/${cuda_file})
+      -o ${CMAKE_CURRENT_BINARY_DIR}/${cuda_file}
+      -Wno-deprecated-gpu-targets)
 
     if(WITH_NANOVDB)
       set(cuda_flags ${cuda_flags}
diff --git a/intern/cycles/util/types_float3.h b/intern/cycles/util/types_float3.h
index fc0f35fa87f..cafcfebf526 100644
--- a/intern/cycles/util/types_float3.h
+++ b/intern/cycles/util/types_float3.h
@@ -88,7 +88,7 @@ struct packed_float3 {
 };
 #endif
 
-static_assert(sizeof(packed_float3) == 12);
+static_assert(sizeof(packed_float3) == 12, "packed_float3 expected to be exactly 12 bytes");
 
 CCL_NAMESPACE_END



More information about the Bf-blender-cvs mailing list