@@ -17,9 +17,29 @@ inline namespace _V1 {
1717namespace ext ::oneapi::experimental {
1818
1919enum class architecture : uint64_t {
20+ // If new device architecture is added to sycl_ext_oneapi_device_architecture:
21+ //
22+ // Update
23+ // - device_architecture.def file in the same directory
24+ // - "detail::min_<category>_architecture" below if needed
25+ // - "detail::max_<category>_architecture" below if needed
26+ // - sycl_ext_oneapi_device_architecture specification doc
27+ // - "-fsycl-targets" description in sycl/doc/UsersManual.md
28+ //
29+ // Add
30+ // - new value for -fsycl-targets option to the compiler driver in
31+ // accordance with changes from sycl/doc/UsersManual.md and update the
32+ // compiler driver tests
33+ // - ___SYCL_TARGET_<ARCH>__ to the compiler driver and to all places below
34+ // - the unique ID of the new architecture to the SYCL RT source code to
35+ // support querying the device architecture through
36+ // device::get_info<ext::oneapi::experimental::info::device::architecture>
37+ // - supported aspects of architecture in
38+ // llvm/include/llvm/SYCLLowerIR/DeviceConfigFile.td
39+ //
2040#define __SYCL_ARCHITECTURE (NAME, VAL ) NAME = VAL,
2141#define __SYCL_ARCHITECTURE_ALIAS (NAME, VAL ) NAME = VAL,
22- #include < sycl/ext/oneapi/experimental/architectures .def>
42+ #include < sycl/ext/oneapi/experimental/device_architecture .def>
2343#undef __SYCL_ARCHITECTURE
2444#undef __SYCL_ARCHITECTURE_ALIAS
2545};
@@ -52,7 +72,7 @@ static constexpr ext::oneapi::experimental::architecture
5272 ext::oneapi::experimental::architecture::intel_gpu_bdw;
5373static constexpr ext::oneapi::experimental::architecture
5474 max_intel_gpu_architecture =
55- ext::oneapi::experimental::architecture::intel_gpu_lnl_m ;
75+ ext::oneapi::experimental::architecture::intel_gpu_ptl_u ;
5676
5777static constexpr ext::oneapi::experimental::architecture
5878 min_nvidia_gpu_architecture =
@@ -152,6 +172,12 @@ static constexpr ext::oneapi::experimental::architecture
152172#ifndef __SYCL_TARGET_INTEL_GPU_LNL_M__
153173#define __SYCL_TARGET_INTEL_GPU_LNL_M__ 0
154174#endif
175+ #ifndef __SYCL_TARGET_INTEL_GPU_PTL_H__
176+ #define __SYCL_TARGET_INTEL_GPU_PTL_H__ 0
177+ #endif
178+ #ifndef __SYCL_TARGET_INTEL_GPU_PTL_U__
179+ #define __SYCL_TARGET_INTEL_GPU_PTL_U__ 0
180+ #endif
155181#ifndef __SYCL_TARGET_NVIDIA_GPU_SM_50__
156182#define __SYCL_TARGET_NVIDIA_GPU_SM_50__ 0
157183#endif
@@ -352,6 +378,8 @@ static constexpr bool is_allowable_aot_mode =
352378 (__SYCL_TARGET_INTEL_GPU_ARL_H__ == 1 ) ||
353379 (__SYCL_TARGET_INTEL_GPU_BMG_G21__ == 1 ) ||
354380 (__SYCL_TARGET_INTEL_GPU_LNL_M__ == 1 ) ||
381+ (__SYCL_TARGET_INTEL_GPU_PTL_H__ == 1 ) ||
382+ (__SYCL_TARGET_INTEL_GPU_PTL_U__ == 1 ) ||
355383 (__SYCL_TARGET_NVIDIA_GPU_SM_50__ == 1 ) ||
356384 (__SYCL_TARGET_NVIDIA_GPU_SM_52__ == 1 ) ||
357385 (__SYCL_TARGET_NVIDIA_GPU_SM_53__ == 1 ) ||
@@ -499,6 +527,12 @@ get_current_architecture_aot() {
499527#if __SYCL_TARGET_INTEL_GPU_LNL_M__
500528 return ext::oneapi::experimental::architecture::intel_gpu_lnl_m;
501529#endif
530+ #if __SYCL_TARGET_INTEL_GPU_PTL_H__
531+ return ext::oneapi::experimental::architecture::intel_gpu_ptl_h;
532+ #endif
533+ #if __SYCL_TARGET_INTEL_GPU_PTL_U__
534+ return ext::oneapi::experimental::architecture::intel_gpu_ptl_u;
535+ #endif
502536#if __SYCL_TARGET_NVIDIA_GPU_SM_50__
503537 return ext::oneapi::experimental::architecture::nvidia_gpu_sm_50;
504538#endif
0 commit comments