From 10520b6487df74ec991d041fb70ab2ee23f1d52c Mon Sep 17 00:00:00 2001
From: foreman
Date: Thu, 21 Feb 2019 13:56:14 -0500
Subject: [PATCH] P4 to Git Change 1746757 by jujiang@JJ-OCL-w8 on 2019/02/21
10:38:37
SWDEV-179047 - [CQE OCL][DTB-BLOCKER][QR][Windows][19.10] clinfo results in "clBuildProgram" error with OCL binaries. Faulty CL#1737731
-Tested on Picasso, PAL stack passed, ORCA stack has issue.
-PAL gas xnack feature supported, but ORCA diesn't
-Added xnack feature and tested, work fine on both Bristol and Picasso
- this is a simple temporary fix, will implement a proper fix later in another ticket.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudefs.hpp#155 edit
[ROCm/clr commit: 908dafa7b1487232133e3995019e51f8946b7539]
---
projects/clr/rocclr/runtime/device/gpu/gpudefs.hpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/projects/clr/rocclr/runtime/device/gpu/gpudefs.hpp b/projects/clr/rocclr/runtime/device/gpu/gpudefs.hpp
index 2407cad01e..056857db4f 100644
--- a/projects/clr/rocclr/runtime/device/gpu/gpudefs.hpp
+++ b/projects/clr/rocclr/runtime/device/gpu/gpudefs.hpp
@@ -190,12 +190,12 @@ enum gfx_handle {
static const char* Gfx700 = "amdgcn-amd-amdhsa--gfx700";
static const char* Gfx701 = "amdgcn-amd-amdhsa--gfx701";
static const char* Gfx800 = "amdgcn-amd-amdhsa--gfx800";
-static const char* Gfx801 = "amdgcn-amd-amdhsa--gfx801";
+static const char* Gfx801 = "amdgcn-amd-amdhsa--gfx801+xnack";
static const char* Gfx804 = "amdgcn-amd-amdhsa--gfx804";
-static const char* Gfx810 = "amdgcn-amd-amdhsa--gfx810";
+static const char* Gfx810 = "amdgcn-amd-amdhsa--gfx810+xnack";
static const char* Gfx900 = "amdgcn-amd-amdhsa--gfx900";
static const char* Gfx901 = "amdgcn-amd-amdhsa--gfx901";
-static const char* Gfx902 = "amdgcn-amd-amdhsa--gfx902";
+static const char* Gfx902 = "amdgcn-amd-amdhsa--gfx902+xnack";
static const char* Gfx903 = "amdgcn-amd-amdhsa--gfx902"; // NOTE: gfx903 is gfx902 with xnack
static const char* Gfx904 = "amdgcn-amd-amdhsa--gfx904";
static const char* Gfx905 = "amdgcn-amd-amdhsa--gfx905";