2
0

P4 to Git Change 1762349 by yaxunl@yaxunl-lc10 on 2019/03/27 11:50:12

SWDEV-145570 - Workaround for mismatch of device name and bundle id for gfx906.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_platform.cpp#25 edit
Este cometimento está contido em:
foreman
2019-03-27 12:53:17 -04:00
ascendente eb852bdb53
cometimento 292e93bf11
+6 -1
Ver ficheiro
@@ -100,7 +100,12 @@ extern "C" std::vector<hipModule_t>* __hipRegisterFatBinary(const void* data)
amd::Context* ctx = g_devices[dev];
if (target.compare(ctx->devices()[0]->info().name_)) {
continue;
// Workaround for gfx906 device name mismatch.
// If bundle target id starts with gfx906 and device name starts with
// gfx906, treat them as match.
if (target.find("gfx906") != 0 ||
std::string(ctx->devices()[0]->info().name_).find("gfx906") != 0)
continue;
}
amd::Program* program = new amd::Program(*ctx);