Department of Electrical and Computer Engineering, University of Science and Technology of Mazandaran, Behshahr, Iran
10.22034/jscit.2026.580022.2243
Abstract
The L1 cache on NVIDIA GPUs plays a decisive role in the performance of CUDA programs. This cache sometimes improves kernel execution performance, while in other cases – due to the phenomenon of Cache Pollution – it degrades kernel performance. Therefore, in some situations it is preferable to disable the L1 cache before kernel launching. A programmer can readily determine, through trial and error, whether the cache should be enabled or disabled. However, since compilers do not have the ability to execute programs, they cannot determine the optimal cache state. In this paper, a model based on machine learning methods is presented which, by extracting the static features of the input kernel, determines whether the L1 cache should be enabled or disabled. The proposed model is a two-class classifier and obtains the input kernel features through static analysis of CUDA and PTX code with the assistance of the NVCC compiler. Experimental results show that this model can correctly identify optimal cache tuning with an accuracy higher than 92.86%. Consequently, this model can be employed alongside a compiler and lead to improved performance of the compiled program.
Riahi, A. & Ghoreishi, S. (2026). Model-driven Tuning of L1 Cache on GPU. (e251452). Journal of Soft Computing and Information Technology, (), e251452 https://doi.org/10.22034/jscit.2026.580022.2243
MLA
Riahi, A., & Ghoreishi, S. "Model-driven Tuning of L1 Cache on GPU" .e251452 , Journal of Soft Computing and Information Technology, , 2026, e251452. doi: 10.22034/jscit.2026.580022.2243
HARVARD
Riahi, A., & Ghoreishi, S. (2026). 'Model-driven Tuning of L1 Cache on GPU', Journal of Soft Computing and Information Technology, (), e251452. doi: 10.22034/jscit.2026.580022.2243
CHICAGO
Riahi, A. & Ghoreishi, S., "Model-driven Tuning of L1 Cache on GPU." Journal of Soft Computing and Information Technology, (2026): e251452, doi: 10.22034/jscit.2026.580022.2243
VANCOUVER
Riahi A., Ghoreishi S. Model-driven Tuning of L1 Cache on GPU. JSCIT. 2026;():e251452 (In Persian). doi: 10.22034/jscit.2026.580022.2243