Skip to content

Commit 723a873

Browse files
authored
[SYCL] Add a list of Intel GPU device IDs to the optional device features design. (#6582)
* [SYCL] Add a list of Intel GPU device IDs to the optional device features design. Signed-off-by: Konstantin S Bobrovsky <konstantin.s.bobrovsky@intel.com>
1 parent 54655a2 commit 723a873

File tree

1 file changed

+31
-11
lines changed

1 file changed

+31
-11
lines changed

sycl/doc/design/OptionalDeviceFeatures.md

Lines changed: 31 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ a name of a device architecture. There are sub-keys under each device for
876876
the supported aspects and sub-group sizes. For example:
877877

878878
```
879-
intel_gpu_11_1:
879+
intel_gpu_12_0_0:
880880
aspects: [1, 2, 3]
881881
sub-group-sizes: [8, 16]
882882
intel_gpu_icl:
@@ -933,7 +933,7 @@ example set of targets used for the illustration is 4 targets
933933
- non-SPIR-V based
934934
- ptx64 (PTX)
935935
- SPIR-V based
936-
- intel_gpu_12 (Intel Graphics)
936+
- intel_gpu_12_0_0 (Intel Graphics)
937937
- x86_64_avx512 (AVX512)
938938

939939
![Device SPIRV translation and AOT compilation](images/DeviceLinkAOTAndWrap.svg)
@@ -1009,20 +1009,40 @@ architectures need to be identified:
10091009
In all such places architecture naming should be the same. In some cases aliases
10101010
are allowed. Below is a list of target architectures supported by DPC++:
10111011

1012-
| target/alias(es) | description |
1013-
|-|-|
1014-
| intel_gpu | Generic Intel graphics architecture |
1015-
| intel_gpu_tgl, intel_gpu_12_0 | Intel Tiger Lake (11th generation Core) integrated graphics architecture |
1016-
| ptx64 | Generic 64-bit PTX target architecture |
1017-
| spir64 | Generic 64-bit SPIR-V target |
1018-
| x86_64 | Generic 64-bit x86 architecture |
1012+
| target/alias(es) | description |
1013+
|--------------------------------------|-------------------------------------------|
1014+
| ptx64 | Generic 64-bit PTX target architecture |
1015+
| spir64 | Generic 64-bit SPIR-V target |
1016+
| x86_64 | Generic 64-bit x86 architecture |
1017+
| intel_gpu_pvc | Ponte Vecchio Intel graphics architecture |
1018+
| intel_gpu_acm_g12 | Alchemist G12 Intel graphics architecture |
1019+
| intel_gpu_acm_g11 | Alchemist G11 Intel graphics architecture |
1020+
| intel_gpu_acm_g10 | Alchemist G10 Intel graphics architecture |
1021+
| intel_gpu_12_10_0, intel_gpu_dg1 | DG1 Intel graphics architecture |
1022+
| intel_gpu_adl_n | Alder Lake N Intel graphics architecture |
1023+
| intel_gpu_adl_p | Alder Lake P Intel graphics architecture |
1024+
| intel_gpu_rpl_s | Raptor Lake Intel graphics architecture |
1025+
| intel_gpu_adl_s | Alder Lake S Intel graphics architecture |
1026+
| intel_gpu_rkl | Rocket Lake Intel graphics architecture |
1027+
| intel_gpu_12_0_0, intel_gpu_tgllp | Tiger Lake Intel graphics architecture |
1028+
| intel_gpu_11_2_0, intel_gpu_ehl | Elkhart Lake Intel graphics architecture |
1029+
| intel_gpu_11_0_0, intel_gpu_icllp | Ice Lake Intel graphics architecture |
1030+
| intel_gpu_9_7_0, intel_gpu_cml | Comet Lake Intel graphics architecture |
1031+
| intel_gpu_9_6_0, intel_gpu_aml | Amber Lake Intel graphics architecture |
1032+
| intel_gpu_9_5_0, intel_gpu_whl | Whiskey Lake Intel graphics architecture |
1033+
| intel_gpu_9_4_0, intel_gpu_glk | Gemini Lake Intel graphics architecture |
1034+
| intel_gpu_9_3_0, intel_gpu_apl | Apollo Lake Intel graphics architecture |
1035+
| intel_gpu_9_2_9, intel_gpu_cfl | Coffee Lake Intel graphics architecture |
1036+
| intel_gpu_9_1_9, intel_gpu_kbl | Kaby Lake Intel graphics architecture |
1037+
| intel_gpu_9_0_9, intel_gpu_skl | Skylake Intel graphics architecture |
1038+
| intel_gpu_8_0_0, intel_gpu_bdw | Broadwell Intel graphics architecture |
10191039

10201040
TODO: Provide full list of AOT targets supported by the identification
10211041
mechanism.
10221042

10231043
Example of clang compilation invocation with 2 AOT targets and generic SPIR-V:
10241044
```
1025-
clang++ -fsycl -fsycl-targets=spir64,intel_gpu_12_0,ptx64 ...
1045+
clang++ -fsycl -fsycl-targets=spir64,intel_gpu_12_0_0,ptx64 ...
10261046
```
10271047

10281048
### Changes to the DPC++ runtime
@@ -1059,7 +1079,7 @@ The exception's `what` string contains a message describing the reason the
10591079
device image is incompatible. For example:
10601080

10611081
```
1062-
Kernel was compiled with '-fsycl-fixed-targets=intel_gpu_11_1' but was
1082+
Kernel was compiled with '-fsycl-fixed-targets=intel_gpu_12_0_0' but was
10631083
submitted to a different device.
10641084
10651085
Kernel uses optional feature corresponding to 'aspect::fp16' but device does

0 commit comments

Comments
 (0)