Skip to content
11 changes: 5 additions & 6 deletions sycl/source/detail/program_manager/program_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -402,12 +402,11 @@ static void appendCompileOptionsFromImage(std::string &CompileOpts,
auto ColonPos = OptValue.find(":");
auto Device = OptValue.substr(0, ColonPos);
std::string BackendStrToAdd;
bool IsPVC =
std::all_of(Devs.begin(), Devs.end(), [&](device_impl &Dev) {
return IsIntelGPU &&
(Dev.get_info<ext::intel::info::device::device_id>() &
0xFF00) == 0x0B00;
});
bool IsPVC = std::all_of(Devs.begin(), Devs.end(), [&](device_impl &Dev) {
return IsIntelGPU &&
(Dev.get_info<ext::intel::info::device::device_id>() & 0xFF00) ==
0x0B00;
});
// Currently 'pvc' is the only supported device.
if (Device == "pvc" && IsPVC)
BackendStrToAdd = " " + OptValue.substr(ColonPos + 1) + " ";
Expand Down