From 121ffcc6ecb430898c266af7f4cc8b9973dfac8d Mon Sep 17 00:00:00 2001 From: foreman Date: Tue, 5 Sep 2017 16:19:02 -0400 Subject: [PATCH] P4 to Git Change 1455369 by asalmanp@asalmanp-ocl-stg on 2017/09/05 16:02:34 SWDEV-79278 - [OCL] Dont add gfx9+ devices into offline devices list in orca path as they will be added in pal. ReviewboardURL = http://ocltc.amd.com/reviews/r/13396/ Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#569 edit --- rocclr/runtime/device/gpu/gpudevice.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rocclr/runtime/device/gpu/gpudevice.cpp b/rocclr/runtime/device/gpu/gpudevice.cpp index fa95eda983..a512375433 100644 --- a/rocclr/runtime/device/gpu/gpudevice.cpp +++ b/rocclr/runtime/device/gpu/gpudevice.cpp @@ -116,6 +116,12 @@ bool NullDevice::create(CALtarget target) { assert((target >= CAL_TARGET_TAHITI) && (target != CAL_TARGET_SCRAPPER) && (target != CAL_TARGET_DEVASTATOR)); + + if ((GPU_ENABLE_PAL == 2) && + (calTarget_ == CAL_TARGET_GREENLAND || calTarget_ == CAL_TARGET_RAVEN || + calTarget_ >= CAL_TARGET_VEGA12)) { + return false; + } // Force double if it could be supported switch (target) { case CAL_TARGET_PITCAIRN: