{"title":"Enabling the Use of C++20 Unseq Execution Policy for OpenCL","authors":"Po-Yao Chang, Tai-Liang Chen, Jenq-Kuen Lee","doi":"10.1145/3456669.3456674","DOIUrl":null,"url":null,"abstract":"This work facilitates the usage of unsequenced execution policy as seen in C++20 standard library with the newly introduced OpenCL kernel language, C++ for OpenCL. By passing unseq, a global object of type unsequenced_policy, as an argument to selected C++ parallel algorithms, the function would then be vectorized with the help of clang and LLVM. This work complements the introduction of C++ for OpenCL, which brings the core language part of C++17 to OpenCL while leaving out the standard library part. In the best case, we see a whopping 6.9 time speedup.","PeriodicalId":73497,"journal":{"name":"International Workshop on OpenCL","volume":null,"pages":null},"PeriodicalIF":0.0000,"publicationDate":"2021-04-27","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"International Workshop on OpenCL","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3456669.3456674","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 2
Abstract
This work facilitates the usage of unsequenced execution policy as seen in C++20 standard library with the newly introduced OpenCL kernel language, C++ for OpenCL. By passing unseq, a global object of type unsequenced_policy, as an argument to selected C++ parallel algorithms, the function would then be vectorized with the help of clang and LLVM. This work complements the introduction of C++ for OpenCL, which brings the core language part of C++17 to OpenCL while leaving out the standard library part. In the best case, we see a whopping 6.9 time speedup.