{"title":"Machine Learning for Vectorization Decision in OpenCL/SYCL Kernel","authors":"Wenju He, Yuxin Zou, Feng Zou","doi":"10.1145/3585341.3585364","DOIUrl":null,"url":null,"abstract":"Vectorization of OpenCL/SYCL kernel on CPU device could improve performance significantly. It utilizes single instruction multiple data (SIMD) instruction to process multiple work-items concurrently. However, some applications don't benefit from vectorization. Whether to do vectorization is a challenging problem, since it could vary from case to case. For OpenCL kernels, Intel SYCL CPU device currently uses heuristic to decide whether to discard vectorized kernel. This paper presents a machine learning approach to tackle this problem. Experimental result on Intel Xeon Cascade Lake CPU demonstrates the new approach is better than the heuristic approach.","PeriodicalId":360830,"journal":{"name":"Proceedings of the 2023 International Workshop on OpenCL","volume":"31 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2023-04-18","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 2023 International Workshop on OpenCL","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3585341.3585364","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
Vectorization of OpenCL/SYCL kernel on CPU device could improve performance significantly. It utilizes single instruction multiple data (SIMD) instruction to process multiple work-items concurrently. However, some applications don't benefit from vectorization. Whether to do vectorization is a challenging problem, since it could vary from case to case. For OpenCL kernels, Intel SYCL CPU device currently uses heuristic to decide whether to discard vectorized kernel. This paper presents a machine learning approach to tackle this problem. Experimental result on Intel Xeon Cascade Lake CPU demonstrates the new approach is better than the heuristic approach.