Skip to content

Commit adfb1c1

Browse files
authored
[SYCL] Update support of online_compiler; advance default GPU device (#7674)
Signed-off-by: Vyacheslav N Klochkov <[email protected]>
1 parent 92f2295 commit adfb1c1

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

sycl/include/sycl/ext/intel/experimental/online_compiler.hpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ class device_arch {
3333

3434
device_arch(int Val) : Val(Val) {}
3535

36+
// TODO1: the list must be extended with a bunch of new GPUs available.
37+
// TODO2: the list of supported GPUs grows rapidly.
38+
// The API must allow user to define the target GPU option even if it is
39+
// not listed in this enumerator below.
3640
enum gpu {
3741
gpu_any = 1,
3842
gpu_gen9 = 2,
@@ -42,7 +46,9 @@ class device_arch {
4246
gpu_cfl = gpu_gen9_5,
4347
gpu_gen11 = 4,
4448
gpu_icl = gpu_gen11,
45-
gpu_gen12 = 5
49+
gpu_gen12 = 5,
50+
gpu_tgl = gpu_gen12,
51+
gpu_tgllp = gpu_gen12
4652
};
4753

4854
enum cpu {

sycl/source/detail/online_compiler/online_compiler.cpp

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ prepareOclocArgs(sycl::info::device_type DeviceType, device_arch DeviceArch,
2929

3030
if (DeviceType == sycl::info::device_type::gpu) {
3131
switch (DeviceArch) {
32+
case device_arch::gpu_gen9:
33+
Args.push_back("skl");
34+
break;
35+
3236
case device_arch::gpu_gen9_5:
3337
Args.push_back("cfl");
3438
break;
@@ -37,13 +41,17 @@ prepareOclocArgs(sycl::info::device_type DeviceType, device_arch DeviceArch,
3741
Args.push_back("icllp");
3842
break;
3943

44+
case device_arch::gpu_gen12:
45+
Args.push_back("tgllp");
46+
break;
47+
4048
default:
41-
Args.push_back("skl");
49+
Args.push_back("tgllp");
4250
}
4351
} else {
4452
// TODO: change that to generic device when ocloc adds support for it.
45-
// For now "skl" is used as the lowest arch with GEN9 arch.
46-
Args.push_back("skl");
53+
// For now "tgllp" is used as the option supported on all known GPU RT.
54+
Args.push_back("tgllp");
4755
}
4856

4957
if (DeviceStepping != "") {

0 commit comments

Comments
 (0)