P4 to Git Change 1308933 by gandryey@gera-w8 on 2016/08/30 18:42:21
SWDEV-86035 - Enable PAL for GFX9 by default
- GPU_ENABLE_PAL=0 will force GSL backend for GFX9
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#550 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#19 edit
... //depot/stg/opencl/drivers/opencl/runtime/utils/flags.hpp#256 edit
[ROCm/clr commit: e0f15c2613]
This commit is contained in:
@@ -851,6 +851,10 @@ Device::create(CALuint ordinal, CALuint numOfDevices)
|
||||
calTarget_ = getAttribs().target;
|
||||
hwInfo_ = &DeviceInfo[calTarget_];
|
||||
|
||||
if ((GPU_ENABLE_PAL == 2) && (calTarget_ > CAL_TARGET_STONEY)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Creates device settings
|
||||
settings_ = new gpu::Settings();
|
||||
gpu::Settings* gpuSettings = reinterpret_cast<gpu::Settings*>(settings_);
|
||||
|
||||
مرجع در شماره جدید
Block a user