From 0a9fe983bb2c0a92d3a10dd5d67f1bcc6039e40f Mon Sep 17 00:00:00 2001 From: Julian Lenz Date: Tue, 26 Mar 2024 16:33:00 +0100 Subject: [PATCH 1/2] Fit accessblocksize into heap --- examples/mallocMC_example01.cpp | 2 +- examples/mallocMC_example03.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/mallocMC_example01.cpp b/examples/mallocMC_example01.cpp index fb99f599..e544072a 100644 --- a/examples/mallocMC_example01.cpp +++ b/examples/mallocMC_example01.cpp @@ -43,7 +43,7 @@ using Acc = alpaka::ExampleDefaultAcc; struct ScatterHeapConfig { static constexpr auto pagesize = 4096; - static constexpr auto accessblocksize = 2u * 1024u * 1024u * 1024u; + static constexpr auto accessblocksize = 512u * 1024u * 1024u; static constexpr auto regionsize = 16; static constexpr auto wastefactor = 2; static constexpr auto resetfreedpages = false; diff --git a/examples/mallocMC_example03.cpp b/examples/mallocMC_example03.cpp index 4c09d43f..f2262b63 100644 --- a/examples/mallocMC_example03.cpp +++ b/examples/mallocMC_example03.cpp @@ -44,7 +44,7 @@ using Acc = alpaka::ExampleDefaultAcc; struct ScatterConfig { static constexpr auto pagesize = 4096; - static constexpr auto accessblocksize = 2u * 1024u * 1024u * 1024u; + static constexpr auto accessblocksize = 512u * 1024u * 1024u; static constexpr auto regionsize = 16; static constexpr auto wastefactor = 2; static constexpr auto resetfreedpages = false; From 3c1fa4bfbd06c20c34dd222e714876b3ae0e8f5c Mon Sep 17 00:00:00 2001 From: Julian Lenz Date: Wed, 27 Mar 2024 14:43:13 +0100 Subject: [PATCH 2/2] Fit accessblocksize into heap for tests --- tests/dimensions.cpp | 2 +- tests/policies.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/dimensions.cpp b/tests/dimensions.cpp index 1f6465e8..b8b02399 100644 --- a/tests/dimensions.cpp +++ b/tests/dimensions.cpp @@ -34,7 +34,7 @@ using Idx = std::size_t; struct ScatterConfig { static constexpr auto pagesize = 4096; - static constexpr auto accessblocksize = 2u * 1024u * 1024u * 1024u; + static constexpr auto accessblocksize = 256u * 1024u; static constexpr auto regionsize = 16; static constexpr auto wastefactor = 2; static constexpr auto resetfreedpages = false; diff --git a/tests/policies.cpp b/tests/policies.cpp index 29ec3912..b80abb17 100644 --- a/tests/policies.cpp +++ b/tests/policies.cpp @@ -36,7 +36,7 @@ using Acc = alpaka::AccGpuCudaRt; struct ScatterConfig { static constexpr auto pagesize = 4096; - static constexpr auto accessblocksize = 8; + static constexpr auto accessblocksize = 256U * 1024U; static constexpr auto regionsize = 16; static constexpr auto wastefactor = 2; static constexpr auto resetfreedpages = false;