Blender Git Commit Log

Git Commits -> Revision a3c4091

Revision a3c4091 by Patrick Mours (master)
December 3, 2020, 14:20 (GMT)
Fix Cycles device kernels containing debug assertation code

NanoVDB includes "assert.h" and makes use of "assert" in several places and since the compile
pipeline for CUDA/OptiX kernels does not define "NDEBUG" for release builds, those debug
checks were always added. This is not intended, so this patch disables "assert" for CUDA/OptiX
by defining "NDEBUG" before including NanoVDB headers.
This also fixes a warning about unknown pragmas in NanoVDB thrown by the CUDA compiler.

Commit Details:

Full Hash: a3c40912153235508aaccbd310f247073029becb
Parent Commit: 5d13082
Lines Changed: +3, -0

2 Modified Paths:

/intern/cycles/kernel/kernels/cpu/kernel_cpu_image.h (+1, -0) (Diff)
/intern/cycles/kernel/kernels/cuda/kernel_cuda_image.h (+2, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021