SWDEV-563752 - Allow hipMemLocationTypeHost in hipMemSetAccess even if memory was created on the device (#1620)
Co-authored-by: Rahul Manocha <rmanocha@amd.com>
Этот коммит содержится в:
1 родитель
24cb8c4deb
Коммит
1dd0237cb2
2 files changed
+8
-7
No files matched your search
@@ -388,10 +388,6 @@ hipError_t hipMemSetAccess(void* ptr, size_t size, const hipMemAccessDesc* desc,
|
||||
if (accessLocationType != hipMemLocationTypeDevice && accessLocationType != hipMemLocationTypeHost) {
|
||||
HIP_RETURN(hipErrorInvalidValue);
|
||||
}
|
||||
if (accessLocationType == hipMemLocationTypeHost &&
|
||||
memLocationType != hipMemLocationTypeHost) {
|
||||
HIP_RETURN(hipErrorInvalidValue)
|
||||
}
|
||||
|
||||
if (desc[desc_idx].location.id >= g_devices.size()) {
|
||||
HIP_RETURN(hipErrorInvalidValue)
|
||||
|
||||
Reference in new issue
Block a user