Description Usage Arguments References See Also
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 function hfunc
. 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 hfunc
. Any context-wide preference
set via cuCtxSetCacheConfig
() will be overridden by this per-function
setting unless the per-function setting is CU_FUNC_CACHE_PREFER_NONE
. In
that case, the current context-wide setting will be used.
1 | cuFuncSetCacheConfig(hfunc, config)
|
hfunc |
Kernel to configure cache for |
config |
Requested cache configuration |
http://docs.nvidia.com/cuda/cuda-driver-api/index.html
cuCtxGetCacheConfig
cuCtxSetCacheConfig
cuFuncGetAttribute
cuLaunchKernel
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.