pub unsafe extern "C" fn cuKernelSetCacheConfig(
kernel: CUkernel,
config: CUfunc_cache,
dev: CUdevice,
) -> CUresultExpand description
Sets the preferred cache configuration for a device kernel.
On devices where the L1 cache and shared memory use the same hardware resources, this sets through config the preferred cache configuration for the device kernel kernel on the requested device dev. This is only a preference. The driver will use the requested configuration if possible, but it is free to choose a different configuration if required to execute kernel. Any context-wide preference set via cuCtxSetCacheConfig will be overridden by this per-kernel setting.
Note that attributes set using cuFuncSetCacheConfig will override the attribute set by this API irrespective of whether the call to cuFuncSetCacheConfig is made before or after this API call.
This setting does nothing on devices where the size of the L1 cache and shared memory are fixed.
Launching a kernel with a different preference than the most recent preference setting may insert a device-side synchronization point.
The supported cache configurations are.
ยงParameters
kernel: Kernel to configure cache for.config: Requested cache configuration.dev: Device to set attribute of.