From 65d3ceb312b78a1d855f6a84479e2397324e5dc6 Mon Sep 17 00:00:00 2001 From: Sourabh Betigeri Date: Tue, 28 Jun 2022 12:35:04 -0700 Subject: [PATCH] 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: 1ee3a6d5c6e1dd2999123a687f8b5d790c498e13] --- projects/clr/hipamd/src/hip_hmm.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/projects/clr/hipamd/src/hip_hmm.cpp b/projects/clr/hipamd/src/hip_hmm.cpp index 73697c04c7..8a3cf7da16 100644 --- a/projects/clr/hipamd/src/hip_hmm.cpp +++ b/projects/clr/hipamd/src/hip_hmm.cpp @@ -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,