P4 to Git Change 1450327 by asalmanp@asalmanp-ocl-stg on 2017/08/22 14:59:47

SWDEV-107271 - follow up for CL#1449513, adding missing gfx902/gfx903 IDs in palprogram

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.cpp#44 edit
Tento commit je obsažen v:
foreman
2017-08-22 15:21:26 -04:00
rodič 6ff1eb1d4e
revize 2da2ed4ca1
+12
Zobrazit soubor
@@ -891,6 +891,14 @@ hsa_isa_t PALHSALoaderContext::IsaFromName(const char* name) {
isa.handle = gfx901;
return isa;
}
if (!strcmp(Gfx902, name)) {
isa.handle = gfx902;
return isa;
}
if (!strcmp(Gfx903, name)) {
isa.handle = gfx903;
return isa;
}
return isa;
}
@@ -917,6 +925,10 @@ bool PALHSALoaderContext::IsaSupportedByAgent(hsa_agent_t agent, hsa_isa_t isa)
case gfx900:
case gfx901:
return isa.handle == gfx900 || isa.handle == gfx901;
case gfx902:
case gfx903:
return isa.handle == gfx902 || isa.handle == gfx903;
}
}