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 파일이 변경됨
+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 {
|
||||
|
||||
새 이슈에서 참조
사용자 차단