Skip to content

Commit ed3809b

Browse files
authored
[SYCL][Driver] Link Native Bfloat16 device library for WCL AOT (#20645)
WCL target supports native bfloat16 conversions, we should link native bfloat16 device library for it. --------- Signed-off-by: jinge90 <[email protected]>
1 parent cd93744 commit ed3809b

File tree

2 files changed

+106
-65
lines changed

2 files changed

+106
-65
lines changed

clang/lib/Driver/ToolChains/SYCL.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ static bool selectBfloatLibs(const llvm::Triple &Triple, const Compilation &C,
252252
"intel_gpu_pvc", "intel_gpu_acm_g10", "intel_gpu_acm_g11",
253253
"intel_gpu_acm_g12", "intel_gpu_dg2_g10", "intel_gpu_dg2_g11",
254254
"intel_dg2_g12", "intel_gpu_bmg_g21", "intel_gpu_lnl_m",
255-
"intel_gpu_ptl_h", "intel_gpu_ptl_u"};
255+
"intel_gpu_ptl_h", "intel_gpu_ptl_u", "intel_gpu_wcl"};
256256
const llvm::opt::ArgList &Args = C.getArgs();
257257
bool NeedLibs = false;
258258

@@ -294,7 +294,8 @@ static bool selectBfloatLibs(const llvm::Triple &Triple, const Compilation &C,
294294
auto checkBF = [](StringRef Device) {
295295
return Device.starts_with("pvc") || Device.starts_with("ats") ||
296296
Device.starts_with("dg2") || Device.starts_with("bmg") ||
297-
Device.starts_with("lnl") || Device.starts_with("ptl");
297+
Device.starts_with("lnl") || Device.starts_with("ptl") ||
298+
Device.starts_with("wcl");
298299
};
299300

300301
auto checkSpirvJIT = [](StringRef Target) {

0 commit comments

Comments
 (0)