P4 to Git Change 1383638 by skeely@skeely_HSA_linux on 2017/03/09 15:39:54

SWDEV-3 - Don't report SVM atomics on Vega.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#43 edit
This commit is contained in:
foreman
2017-03-09 16:08:31 -05:00
parent 5a36eaad4b
commit ee02a238bc
+3 -1
Vedi File
@@ -1152,7 +1152,9 @@ Device::populateOCLDeviceConstants()
}
#if !defined(WITH_LIGHTNING_COMPILER)
// Report atomics capability based on GFX IP, control on Hawaii
if (info_.hostUnifiedMemory_ || deviceInfo_.gfxipVersion_ >= 800) {
// and Vega10.
if (info_.hostUnifiedMemory_ || ((deviceInfo_.gfxipVersion_ >= 800) &&
(deviceInfo_.gfxipVersion_ < 900))) {
info_.svmCapabilities_ |= CL_DEVICE_SVM_ATOMICS;
}
#endif // !defined(WITH_LIGHTNING_COMPILER)