Skip to content

Commit ad6d1fa

Browse files
committed
support intel_gpu_dg2_* sycl targets
Signed-off-by: jinge90 <[email protected]>
1 parent 2e3b1a1 commit ad6d1fa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/lib/Driver/ToolChains/SYCL.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,9 @@ SYCL::getDeviceLibraries(const Compilation &C, const llvm::Triple &TargetTriple,
618618
if (SYCLTargetStr == "intel_gpu_pvc")
619619
return AOT_PVC;
620620

621+
if (SYCLTargetStr.starts_with("intel_gpu_dg2"))
622+
return AOT_DG2;
623+
621624
if (SYCLTargetStr.starts_with("spir64_gen")) {
622625
ArgStringList TargArgs;
623626
Args.AddAllArgValues(TargArgs, options::OPT_Xs, options::OPT_Xs_separate);

0 commit comments

Comments
 (0)