SWDEV-325708 - Query for FineGrained support

Change-Id: Idd20a71467595ab6577bf47c081c437a4b166988
Tá an tiomantas seo le fáil i:
Sarbojit Sarkar údaraithe agus Sarbojit Sarkar tiomanta 2022-03-16 05:09:42 -04:00
1 tuismitheoir 3b730facae
tiomantas 3c2dc1f646
3 comhad athraithe
+13

Níor tháinig aon chomhaid le do chuardach

+9
Féach ar an gComhad
@@ -1064,6 +1064,15 @@ Memory* Device::getGpuMemory(amd::Memory* mem) const {
return static_cast<roc::Memory*>(mem->getDeviceMemory(*this));
}
const bool Device::isFineGrainSupported() const {
bool result = (info().svmCapabilities_ & CL_DEVICE_SVM_ATOMICS) != 0 ? true : false;
if (result) {
if (gpu_fine_grained_segment_.handle != 0) {
return true;
}
}
return false;
}
// ================================================================================================
bool Device::populateOCLDeviceConstants() {
info_.available_ = true;