[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-398595-105":59,"doc-detail-398595-en":131,"doc-similar-398595":162},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":124,"head_meta":126,"extra_data":128,"updated_unix":130},105,"en","sycl-12-api-reference-guide-runtime-classes","SYCL 1.2 API Reference Guide - Runtime Classes","","SYCL 1.2 API reference material describing key runtime classes and their member functions. It covers device_selector, platform, and context, including constructors, assignment and query operators, and methods to retrieve underlying OpenCL identifiers. The guide also lists platform and context information descriptors and device selection options such as default, gpu, cpu, and host selectors, with notes on host behavior and OpenGL interoperability members when enabled.",{"@graph":69,"@context":123},[70,84,106],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/sycl-12-api-reference-guide-runtime-classes/398595/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/sycl-12-api-reference-guide-runtime-classes/398595.png","ImageObject",300,407,{"name":92,"@type":93},"PakDamar76","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-30","2026-09-27",true,{"@type":102,"interactionType":103,"userInteractionCount":105},"InteractionCounter",{"@type":104},"ViewAction",14,{"@type":107,"mainEntity":108},"FAQPage",[109,115,119],{"name":110,"@type":111,"acceptedAnswer":112},"What does default_selector do in SYCL 1.2?","Question",{"text":113,"@type":114},"It selects devices according to heuristics of the system.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"How can you retrieve available SYCL platforms using platform?",{"text":118,"@type":114},"Use the static member function get_platforms() to obtain the list of platforms.",{"name":120,"@type":111,"acceptedAnswer":121},"Which information can context query via get_info()?",{"text":122,"@type":114},"context provides queries such as reference_count, num_devices, devices, and gl_interop when using the info::context descriptors.","https://schema.org",{"og:url":83,"og:type":125,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":127,"canonical":83},"index,follow",{"doc_id":129,"site_id":62},398595,1790828810,{"code":4,"msg":5,"data":132},{"doc_id":129,"user_id":133,"nickname":92,"user_avatar":134,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":105,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":39,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":144,"read_time":46,"preview_page_count":19,"preview_urls":145},962090893057,"https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d","SYCL 1.2 API Reference Guide  \nRuntime: Class device_selector [3.3. 1]  \ndevice_selector();  \ndevice_selector(const device_selector &selector); device select_device() const;  \nvirtual int operator()(const device &device) const;  \nSYCL device selectors:  \n\n| Device selectors | Description |\n| --- | --- |\n| default_selector | Devices selected by heuristics of the system. |\n| gpu_selector | Select devices according to device type info::device::device_type::gpu |\n| cpu_selector | Select devices according to device type info::device::device_type::cpu |\n| host_selector | Selects the SYCL host CPU device that does not require an OpenCL runtime. |\n\nRuntime: Class platform [3.3.2] platform();  \nexplicit platform(cl_platform_id platformId); explicit platform(device_selector &devSelector); platform(const platform &rhs);  \nplatform &operator=(const platform &rhs); cl_platform_id get() const;  \nstatic vector_class\u003Cplatform> get_platforms() const; vector_class\u003Cdevice> get_devices(  \ninfo::device_type = info::device_type::all) const; template \u003Cinfo::platform param>  \ntypename info::param_traits\u003C  \ninfo::platform, param>::type get_info() const; bool has_extension(string_class extension) const; bool is_host() const;  \nPlatform information descriptors:  \n\n| Platform descriptors | Return type |\n| --- | --- |\n| info::platform::profile | string_class |\n| info::platform::version | string_class |\n| info::platform::name | string_class |\n| info::platform::vendor | string_class |\n| info::platform::extensions | string_class |\n\nRuntime: Class context [3.3.3] context();  \nexplicit context(async_handler asyncHandler = nullptr);  \ncontext(const device_selector &deviceSelector, info::gl_context_interop interopFlag, async_handler asyncHandler = nullptr);  \ncontext(const device &dev,  \ninfo::gl_context_interop interopFlag, async_handler asyncHandler = nullptr);  \ncontext(const platform &plt,  \ninfo::gl_context_interop interopFlag, async_handler asyncHandler = nullptr);  \ncontext(vector_class\u003Cdevice> deviceList, info::gl_context_interop interopFlag, async_handler asyncHandler = nullptr);  \ncontext(cl_context clContext, async_handler asyncHandler = nullptr);  \ncontext(const context &rhs);  \ncl_context get() const;  \nbool is_host() const;  \ntemplate \u003Cinfo::context param> typename param_traits\u003C info::context, param>::type get_info() const;  \nplatform get_platform();  \nvector_class\u003Cdevice> get_devices() const;  \nOptional context class members  \nThe following members are also available in class context when enabled by extension cl_khr_gl_sharing. See OpenGL Interop [4 .4. 1] for more information.  \ndevice get_gl_current_device();  \nvector_class\u003Cdevice> get_gl_context_devices();  \nContext queries using get_info():  \n\n| Descriptor | Return type |\n| --- | --- |\n| info::context::reference_count | cl_uint |\n| info::context::num_devices | cl_uint |\n| info::context::devices | vector_class\u003Ccl_device_id> |\n| info::context::gl_interop | info::gl_context_interop |\n\n©2015 Khronos Group-Rev. 0515  \nPage 1  \nSYCL is a C++ programming model for OpenCL which builds on the underlying concepts, portability, and efficiency of OpenCL while adding much of the ease of use and flexibility of C++ .  \n[n.n] [refers to sections in the SYCL 1.2 specification available at khronos.org/registry/sycl](refers to sections in the SYCL 1.2 specification available at khronos.org/registry/sycl)  \nSYCL Example [2.6]  \nBelow is an example of a typical SYCL application which schedules a job  \nto run in parallel on anyOpenCL GPU   \n\n| \\#include \u003CCL/sycl.hpp>\u003Cbr>\\#include \u003Ciostream>\u003Cbr>int main() {\u003Cbr>using namespace cl::sycl;\u003Cbr>\u003Cbr>int data[1024]; // Data to be worked on\u003Cbr>// Include all the SYCL work in a {} block to ensure all // SYCL tasks are completed before exiting the block.\u003Cbr>{\u003Cbr>// Create a queue to enqueue work to\u003Cbr>queue myQueue;\u003Cbr>// Wrap the data variable in a buffer.\u003Cbr>\u003Cbr>buffer\u003Cint, 1> resultBuf(data, range\u003C1>(1024));\u003Cbr>\u003Cbr>}); // End of the queue commands\u003Cbr>} // End of scope, so:w","cbCaieXOXs7kW7Hl","https://ap.wps.com/l/cbCaieXOXs7kW7Hl","pdf",425609,"English","# device_selector\n## Device selector options\n# platform\n## Platform constructors and queries\n## Platform information descriptors\n# context\n## Context constructors and members\n## Context queries using get_info()","[{\"question\":\"What does default_selector do in SYCL 1.2?\",\"answer\":\"It selects devices according to heuristics of the system.\"},{\"question\":\"How can you retrieve available SYCL platforms using platform?\",\"answer\":\"Use the static member function get_platforms() to obtain the list of platforms.\"},{\"question\":\"Which information can context query via get_info()?\",\"answer\":\"context provides queries such as reference_count, num_devices, devices, and gl_interop when using the info::context descriptors.\"}]","SYCL 1.2 API Reference Guide - Runtime Classes | PDF",1790485488,[146,150,154,158],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/555a7c71e0e81c92d28c613497f1a89e.webp",983,1307,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/7081a822205a7a5d548e9181109465d3.webp",982,1306,{"page_no":81,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/b13da8902cc60671760bf09872e87b10.webp",981,1304,{"page_no":19,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/53b2bd1c5ac73eabc3c7707a99011c75.webp",980,1303,{"list":163,"token":66},[164,170,176,182,188,194,201,207,213,219],{"doc_id":165,"doc_title":166,"file_type":138,"home_preview_img_url":167,"slug":168,"view_count":29,"category_name":30,"create_tm":169},698089,"Qualcomm Snapdragon Mobile Platform OpenCL General Programming and Optimization - Revision A - Initial release","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010188385/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796117699&Signature=gpD6mJvPinRoVByMgKJU%2B0pASEA%3D","qualcomm-snapdragon-mobile-platform-opencl-general-programming-and-optimization-revision-a-initial-release",1794448075,{"doc_id":171,"doc_title":172,"file_type":138,"home_preview_img_url":173,"slug":174,"view_count":19,"category_name":30,"create_tm":175},685957,"Analyzing the Performance Impact of GPU Power Level Using SPEChpc 2021","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000302229/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796117699&Signature=lsa6PZHunOIFzKQVUw8GXnKyW3s%3D","analyzing-the-performance-impact-of-gpu-power-level-using-spechpc-2021",1794023888,{"doc_id":177,"doc_title":178,"file_type":138,"home_preview_img_url":179,"slug":180,"view_count":39,"category_name":30,"create_tm":181},689189,"Premiere Training Generic","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000684536/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796117699&Signature=vs1UO71Gm143Nc%2BIcigX8Vignso%3D","premiere-training-generic",1794098717,{"doc_id":183,"doc_title":184,"file_type":138,"home_preview_img_url":185,"slug":186,"view_count":24,"category_name":30,"create_tm":187},691834,"RZ/G3E Group - R01DS0477EJ0120 Datasheet - Features and Overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002884887/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796117699&Signature=Uef50hZT49Mhog0F9I7IM3n4s0U%3D","rzg3e-group-r01ds0477ej0120-datasheet-features-and-overview",1794176380,{"doc_id":189,"doc_title":190,"file_type":138,"home_preview_img_url":191,"slug":192,"view_count":24,"category_name":30,"create_tm":193},687791,"Adobe Premiere Pro CS6 What’s New - Overview of Key Features","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001264481/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796117699&Signature=0XF%2BkDwsSaamP9bwlv6vUcw0ZKM%3D","adobe-premiere-pro-cs6-whats-new-overview-of-key-features",1794085046,{"doc_id":195,"doc_title":196,"file_type":138,"home_preview_img_url":197,"slug":198,"view_count":199,"category_name":30,"create_tm":200},81969,"An Introduction and Tutorial for the Beagle Framework","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808657397/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796117699&Signature=8pKewHQE9OVl7zboO1f8YiuGUz0%3D","an-introduction-and-tutorial-for-the-beagle-framework",23,1784177334,{"doc_id":202,"doc_title":203,"file_type":138,"home_preview_img_url":204,"slug":205,"view_count":105,"category_name":30,"create_tm":206},690716,"AMD Instinct GPU-Powered Servers - Solution Catalog","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002037012/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796117699&Signature=tJ5KnRYMq%2BQyludisUXMveL2H0Y%3D","amd-instinct-gpu-powered-servers-solution-catalog",1794169671,{"doc_id":208,"doc_title":209,"file_type":138,"home_preview_img_url":210,"slug":211,"view_count":29,"category_name":30,"create_tm":212},698125,"Graphics and Computing GPUs - Introduction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010204222/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796117699&Signature=%2BKjKQ5IheCnMaU%2FsAR8PWD6%2Ftlo%3D","graphics-and-computing-gpus-introduction",1794448645,{"doc_id":214,"doc_title":215,"file_type":138,"home_preview_img_url":216,"slug":217,"view_count":24,"category_name":30,"create_tm":218},700722,"NVIDIA DRIVE AGX Thor Development Platform - Development Platform Overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012033651/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796117699&Signature=%2FiBurEMZ9zSklVoH6p06OoZl0D4%3D","nvidia-drive-agx-thor-development-platform-development-platform-overview",1794520226,{"doc_id":220,"doc_title":221,"file_type":138,"home_preview_img_url":222,"slug":223,"view_count":81,"category_name":30,"create_tm":224},686396,"AMD CPU Roadmap - July 2007","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000803320/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796117699&Signature=RnjEGfFGzvUUMueAGGy2uRryN%2BY%3D","amd-cpu-roadmap-july-2007",1794041822]