Description Usage Arguments References See Also
On devices where the L1 cache and shared memory use the same hardware
resources, this sets through cacheConfig
the preferred cache
configuration for the current device. This is only a preference. The
runtime will use the requested configuration if possible, but it is free to
choose a different configuration if required to execute the function. Any
function preference set via
cudaFuncSetCacheConfig
or
cudaFuncSetCacheConfig
will be preferred over this device-wide setting. Setting the device-wide
cache configuration to cudaFuncCachePreferNone
will cause subsequent
kernel launches to prefer to not change the cache configuration unless
required to launch the kernel.
1 | cudaDeviceSetCacheConfig(cacheConfig)
|
cacheConfig |
Requested cache configuration |
http://docs.nvidia.com/cuda/cuda-driver-api/index.html
cudaDeviceGetCacheConfig
cudaFuncSetCacheConfig
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.