diff options
author | Patrick Mours <pmours@nvidia.com> | 2020-12-03 17:20:50 +0300 |
---|---|---|
committer | Patrick Mours <pmours@nvidia.com> | 2020-12-03 17:20:50 +0300 |
commit | a3c40912153235508aaccbd310f247073029becb (patch) | |
tree | ed4119cdc89e5f22d4d89f6cffa0f3fba6ddcabf /source/blender/editors/screen/screen_context.c | |
parent | 5d1308262218db60e22088bd7f16587cf28148e0 (diff) |
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.
Diffstat (limited to 'source/blender/editors/screen/screen_context.c')
0 files changed, 0 insertions, 0 deletions