SWDEV-340649 - Removes a check to limit the size of allocation that was capped to the size of device memory available

Change-Id: Ia99264cc85a1e76293e4fad0734f544351c82809


[ROCm/clr commit: 1ee3a6d5c6]
Αυτή η υποβολή περιλαμβάνεται σε:
Sourabh Betigeri
2022-06-28 12:35:04 -07:00
υποβλήθηκε από Sourabh Betigeri
γονέας 2e860b68a0
υποβολή 65d3ceb312
@@ -216,12 +216,6 @@ hipError_t ihipMallocManaged(void** ptr, size_t size, unsigned int align) {
const amd::Device& dev = *ctx.devices()[0];
// For now limit to the max allocation size on the device.
// The apps should be able to go over the limit in the future
if (dev.info().maxMemAllocSize_ < size) {
return hipErrorMemoryAllocation;
}
// Allocate SVM fine grain buffer with the forced host pointer, avoiding explicit memory
// allocation in the device driver
*ptr = amd::SvmBuffer::malloc(ctx, CL_MEM_SVM_FINE_GRAIN_BUFFER | CL_MEM_ALLOC_HOST_PTR,