18 #ifndef __KERNEL_COMPAT_OPTIX_H__
19 #define __KERNEL_COMPAT_OPTIX_H__
21 #define OPTIX_DONT_INCLUDE_CUDA
24 #define __KERNEL_GPU__
25 #define __KERNEL_CUDA__
26 #define __KERNEL_OPTIX__
27 #define CCL_NAMESPACE_BEGIN
28 #define CCL_NAMESPACE_END
30 #ifndef ATTR_FALLTHROUGH
31 # define ATTR_FALLTHROUGH
40 typedef unsigned short half;
43 #ifdef CYCLES_CUBIN_CC
44 # define FLT_MIN 1.175494350822287507969e-38f
45 # define FLT_MAX 340282346638528859811704183484516925440.0f
46 # define FLT_EPSILON 1.192092896e-07F
52 asm(
"{ cvt.rn.f16.f32 %0, %1;}\n" :
"=h"(val) :
"f"(f));
57 #ifndef __NODES_MAX_GROUP__
58 # define __NODES_MAX_GROUP__ NODE_GROUP_LEVEL_MAX
60 #ifndef __NODES_FEATURES__
61 # define __NODES_FEATURES__ NODE_FEATURE_ALL
65 __device__ __forceinline__
66 #define ccl_device_inline ccl_device
67 #define ccl_device_forceinline ccl_device
68 #define ccl_device_noinline __device__ __noinline__
69 #define ccl_device_noinline_cpu ccl_device
71 #define ccl_static_constant __constant__
72 #define ccl_constant const
74 #define ccl_local_param
77 #define ccl_addr_space
78 #define ccl_loop_no_unroll
79 #define ccl_restrict __restrict__
81 #define ccl_align(n) __align__(n)
84 #define ccl_optional_struct_init = {}
86 #define kernel_data __params.data
87 #define kernel_tex_array(t) __params.t
88 #define kernel_tex_fetch(t, index) __params.t[(index)]
90 #define kernel_assert(cond)
__device__ half __float2half(const float f)
unsigned long long CUtexObject
unsigned __int64 uint64_t