SWDEV-470585 - Disable double copy in HIP

- HIP path doesn't support resource tracking. Thus, double copy can't be enabled,
because it requires resource tracking.

Change-Id: I0f9c4e185b5b2d2b1abde041fca21bb099db9ccd
Этот коммит содержится в:
German Andryeyev
2024-06-27 10:56:41 -04:00
родитель 11817b4405
Коммит 4c763e45a1
+2 -3
Просмотреть файл
@@ -1659,9 +1659,8 @@ pal::Memory* Device::createBuffer(amd::Memory& owner, bool directAccess) const {
// If direct access failed
if (!result) {
// Don't use cached allocation
// if size is biger than max single alloc
if (owner.getSize() > info().maxMemAllocSize_) {
// Don't use cached allocation if size is biger than max single alloc or it's HIP
if (amd::IS_HIP || (owner.getSize() > info().maxMemAllocSize_)) {
delete gpuMemory;
return nullptr;
}