P4 to Git Change 1320976 by lmoriche@lmoriche_opencl_dev on 2016/09/30 02:00:09
SWDEV-103751 - [ROCm CQE][OCLonLC][QR][G] WF 2.0 conf test "Subgroups" fails
- Enable cl_khr_subgroups for the ROCm device.
- Fill in info_.wavefrontWidth_ from hsa_get_agent_info
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#21 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocsettings.cpp#4 edit
[ROCm/clr commit: a6d5fb60eb]
This commit is contained in:
@@ -970,6 +970,13 @@ Device::populateOCLDeviceConstants()
|
||||
}
|
||||
}
|
||||
|
||||
if (HSA_STATUS_SUCCESS !=
|
||||
hsa_agent_get_info(_bkendDevice,
|
||||
HSA_AGENT_INFO_WAVEFRONT_SIZE,
|
||||
&info_.wavefrontWidth_)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -80,6 +80,8 @@ Settings::create(bool doublePrecision)
|
||||
// Also enable AMD double precision extension?
|
||||
enableExtension(ClAmdFp64);
|
||||
}
|
||||
|
||||
enableExtension(ClKhrSubGroups);
|
||||
|
||||
enableExtension(ClKhrDepthImages);
|
||||
supportDepthsRGB_ = true;
|
||||
|
||||
Reference in New Issue
Block a user