Cycles: Set error if a split kernel fails to load
To help catch cases where adding a new kernel is missed for one of the device implementations.
This commit is contained in:
@@ -91,6 +91,7 @@ bool DeviceSplitKernel::load_kernels(const DeviceRequestedFeatures& requested_fe
|
|||||||
#define LOAD_KERNEL(name) \
|
#define LOAD_KERNEL(name) \
|
||||||
kernel_##name = get_split_kernel_function(#name, requested_features); \
|
kernel_##name = get_split_kernel_function(#name, requested_features); \
|
||||||
if(!kernel_##name) { \
|
if(!kernel_##name) { \
|
||||||
|
device->set_error(string("Split kernel error: failed to load kernel_") + #name); \
|
||||||
return false; \
|
return false; \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user