Blender
V5.0
intern
cycles
kernel
device
cpu
device/cpu/compat.h
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2011-2022 Blender Foundation
2
*
3
* SPDX-License-Identifier: Apache-2.0 */
4
5
#pragma once
6
7
/* Release kernel has too much false-positive maybe-uninitialized warnings,
8
* which makes it possible to miss actual warnings.
9
*/
10
#if (defined(__GNUC__) && !defined(__clang__)) && defined(NDEBUG)
11
# pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
12
# pragma GCC diagnostic ignored "-Wuninitialized"
13
#endif
14
15
CCL_NAMESPACE_BEGIN
16
17
/* Assertions inside the kernel only work for the CPU device, so we wrap it in
18
* a macro which is empty for other devices */
19
20
#define kernel_assert(cond) assert(cond)
21
22
CCL_NAMESPACE_END
CCL_NAMESPACE_END
#define CCL_NAMESPACE_END
Definition
device/cuda/compat.h:10
CCL_NAMESPACE_BEGIN
Definition
python.cpp:37
Generated on
for Blender by
doxygen
1.16.1