Intel® oneAPI DPC++/C++ Compiler
Talk to fellow users of Intel® oneAPI DPC++/C++ Compiler and companion tools like Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and Intel® Distribution for GDB*
720 Discussions

How do you get the CL_PLATFORM_EXTENSIONS using SYCL?

Björne2
Novice
377 Views

Using OpenCL I can list extensions a given platform supports as follows:

clGetPlatformInfo(platform, CL_PLATFORM_EXTENSIONS, 0, NULL, &n_bytes);

 On the Agilex 7 FPGA I'm using the call returns the following list:

Extensions     : cl_khr_byte_addressable_store cles_khr_int64 cl_khr_icd cl_khr_fp64 cl_intel_unified_shared_memory cl_intel_create_buffer_with_properties cl_intel_mem_channel_property cl_intel_mem_alloc_buffer_location cl_intel_program_scope_host_pipe cl_intel_global_variable_access

My question is what is the equivalent SYCL code to query the same info? Some documentation refers to types in the "aspect" namespace, but they don't match all extensions CL_PLATFORM_EXTENSIONS returns. For example, I can't find cl_intel_mem_channel_property
anywhere in the SYCL api.

Labels (1)
0 Kudos
2 Replies
Alex_Y_Intel
Moderator
279 Views

I'm escalating your question to our internal engineering team. 

Björne2
Novice
240 Views
Thanks for the reply. I figured it out. Fetching device extensions is not well-supported in SYCL. So you have to use the extensions method that is deprecated and then parse the strings.
0 Kudos
Reply