17# ifndef CYCLES_KERNEL_ONEAPI_EXPORT
19# if defined(ONEAPI_EXPORT)
20# define CYCLES_KERNEL_ONEAPI_EXPORT extern __declspec(dllexport)
22# define CYCLES_KERNEL_ONEAPI_EXPORT extern __declspec(dllimport)
25# define CYCLES_KERNEL_ONEAPI_EXPORT extern __attribute__((visibility("default")))
32typedef void (*OneAPIErrorCallback)(
const char *error,
void *user_ptr);
36 SyclQueue *queue =
nullptr;
38 void *kernel_globals =
nullptr;
40 int scene_max_shaders = 0;
49CYCLES_KERNEL_ONEAPI_EXPORT
bool oneapi_run_test_kernel(SyclQueue *queue_);
50CYCLES_KERNEL_ONEAPI_EXPORT
bool oneapi_zero_memory_on_device(SyclQueue *queue_,
53CYCLES_KERNEL_ONEAPI_EXPORT
void oneapi_set_error_cb(OneAPIErrorCallback cb,
void *user_ptr);
54CYCLES_KERNEL_ONEAPI_EXPORT
size_t oneapi_suggested_gpu_kernel_size(
const DeviceKernel kernel);
55CYCLES_KERNEL_ONEAPI_EXPORT
bool oneapi_enqueue_kernel(KernelContext *context,
57 const size_t global_size,
60 bool use_hardware_raytracing,
62CYCLES_KERNEL_ONEAPI_EXPORT
bool oneapi_load_kernels(SyclQueue *queue,
64 bool use_hardware_raytracing);
unsigned long long int uint64_t