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
Этот коммит содержится в:
@@ -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;
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user