SWDEV-347595 - return proper error
- if flags are not supported Signed-off-by: sdashmiz <shadi.dashmiz@amd.com> Change-Id: Id7570d2c5f3d1169da33561f05c278dcd1834db6
Αυτή η υποβολή περιλαμβάνεται σε:
1 γονέας
4bba4faa0c
υποβολή
58c5e17c5f
1 file changed
+3
@@ -134,6 +134,9 @@ hipError_t hipMemPoolSetAccess(
|
||||
if (desc_list[i].location.id >= g_devices.size()) {
|
||||
HIP_RETURN(hipErrorInvalidValue);
|
||||
}
|
||||
if (desc_list[i].flags > hipMemAccessFlagsProtReadWrite) {
|
||||
HIP_RETURN(hipErrorInvalidValue);
|
||||
}
|
||||
auto device = g_devices[desc_list[i].location.id];
|
||||
hip_mem_pool->SetAccess(device, desc_list[i].flags);
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user