SWDEV-274145 - Fix to return correct data when queried for hipMemRangeAttributeReadMostly attribute
Change-Id: I9041c974b61e7a9c8fbdc748a407bbd04c060876
Este commit está contenido en:
cometido por
Maneesh Gupta
padre
6691318760
commit
b46ffd5fe0
@@ -2364,7 +2364,7 @@ bool Device::GetSvmAttributes(void** data, size_t* data_sizes, int* attributes,
|
||||
for (size_t i = 0; i < num_attributes; ++i) {
|
||||
switch (attributes[i]) {
|
||||
case amd::MemRangeAttribute::ReadMostly:
|
||||
attr.push_back({HSA_AMD_SVM_ATTRIB_READ_ONLY, 0});
|
||||
attr.push_back({HSA_AMD_SVM_ATTRIB_READ_MOSTLY, 0});
|
||||
break;
|
||||
case amd::MemRangeAttribute::PreferredLocation:
|
||||
attr.push_back({HSA_AMD_SVM_ATTRIB_PREFERRED_LOCATION, 0});
|
||||
|
||||
Referencia en una nueva incidencia
Block a user