From 2da2ed4ca18c568a37665f85d54c680a151e4702 Mon Sep 17 00:00:00 2001 From: foreman Date: Tue, 22 Aug 2017 15:21:26 -0400 Subject: [PATCH] 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 --- rocclr/runtime/device/pal/palprogram.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/rocclr/runtime/device/pal/palprogram.cpp b/rocclr/runtime/device/pal/palprogram.cpp index c58bfbab52..61176cb00c 100644 --- a/rocclr/runtime/device/pal/palprogram.cpp +++ b/rocclr/runtime/device/pal/palprogram.cpp @@ -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; + } }