Configure L1 cache / shared memory size?

5 vues (au cours des 30 derniers jours)
Gaszton
Gaszton le 23 Jan 2014
Commenté : Gaszton le 23 Jan 2014
Hello, i am testing a ptx compiled kernel in MATLAB, card gtx 560 ti, cuda architecture 2.1. As the cuda programming guide writes:
"The same on-chip memory is used for both L1 and shared memory: It can be configured as 48 KB of shared memory and 16 KB of L1 cache or as 16 KB of shared memory and 48 KB of L1 cache, using cudaFuncSetCacheConfig()/cuFuncSetCacheConfig()"
i cant find any information on whether i can do this configuration in MATLAB, or with some option to nvcc when compiling the ptx.
The reason why i want to do this, is that my kernel doesnot use any shared memory, and i want to try whether i get any speedup with a bigger L1 cache. (the whole kernel calculates and reads double precision data)
Thanks for any solution!
Gaszton

Réponse acceptée

Edric Ellis
Edric Ellis le 23 Jan 2014
You should be able to configure this by using a CUDA Mex file rather than CUDAKernel.

Plus de réponses (0)

Catégories

En savoir plus sur GPU Computing dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by