Contents

skipAPIValidation

A property that directs the kernel to perform or skip argument validation.

Declaration

static var skipAPIValidation: MPSKernelOptions { get }

Discussion

Most kernels double-check their arguments. This has a small but nonzero CPU cost. Setting this option, however, does not skip checks for memory allocation failure. Turning on this option can result in undefined behavior if the requested operation cannot be completed for some reason. Most error states will be passed through to Metal, which may do nothing or abort the program if Metal API validation is turned on.

See Also

Constants