SWDEV-534207 - Solve more phoenix mem test failures (#545)
* SWDEV-534207 - fix 'Unit_hipFreeMipmappedArrayImplicitSyncArray - float' out of memory error with extent (1024, 1024, 1024) and 1 levels on 740M iGPUs. totalGlobalMem is not really the amount of device memory available for compute * SWDEV-534207 - compare expected available memory within a range in Unit_hipMalloc3D_Basic; to take into account some bookkeeping overhead (instead of in exact 64MB chunks) * SWDEV-534207 - fix missing setting of SvmGpuMemoryCreateInfo::interprocess in the 'fine' and 'fine uncached' memory and 'MemorySubAllocator' cases. Coarse allocation was added first; the flag was missed when the other three cases were added * SWDEV-534207 - allow more room for the check of available memory after hipFree() in Unit_hipMalloc3D_Basic; it was till failing on 740M --------- Co-authored-by: Gerardo Hernandez <gerardo.hernandez@amd.com> Co-authored-by: systems-assistant[bot] <systems-assistant[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
9664f1dc91
commit
dae5b30a1a
@@ -101,8 +101,9 @@ TEST_CASE("Unit_hipMalloc3D_Basic") {
|
||||
// available amount returned is the same as the one we got the first time because of
|
||||
// other processes running on the system; we consider a success if at least a size
|
||||
// equivalent to two of the allocations has become available
|
||||
// This test was too brittle before, when it was expecting avail to be equal to pavail
|
||||
if (avail < pavail - height * width * depth) {
|
||||
// (give or take 4MB, as there is bookkeeping overhead)
|
||||
// This test was too brittle before, when it was expecting 'avail' to be equal to 'pavail'
|
||||
if (avail < pavail - height * width * depth - 4 * 1024 * 1024) {
|
||||
WARN("Memory leak of hipMalloc3D API in multithreaded scenario."
|
||||
<< " Available memory before the hipMalloc3D() call (bytes): " << pavail
|
||||
<< " Available memory after the call: " << iavail
|
||||
|
||||
Reference in New Issue
Block a user