Skip to content

Commit 04a6159

Browse files
authored
Fit accessblocksize into heap for examples and tests (alpaka-group#247)
* Fit accessblocksize into heap * Fit accessblocksize into heap for tests
1 parent 39f8dbf commit 04a6159

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

examples/mallocMC_example01.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ using Acc = alpaka::ExampleDefaultAcc<Dim, Idx>;
4343
struct ScatterHeapConfig
4444
{
4545
static constexpr auto pagesize = 4096;
46-
static constexpr auto accessblocksize = 2u * 1024u * 1024u * 1024u;
46+
static constexpr auto accessblocksize = 512u * 1024u * 1024u;
4747
static constexpr auto regionsize = 16;
4848
static constexpr auto wastefactor = 2;
4949
static constexpr auto resetfreedpages = false;

examples/mallocMC_example03.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ using Acc = alpaka::ExampleDefaultAcc<Dim, Idx>;
4444
struct ScatterConfig
4545
{
4646
static constexpr auto pagesize = 4096;
47-
static constexpr auto accessblocksize = 2u * 1024u * 1024u * 1024u;
47+
static constexpr auto accessblocksize = 512u * 1024u * 1024u;
4848
static constexpr auto regionsize = 16;
4949
static constexpr auto wastefactor = 2;
5050
static constexpr auto resetfreedpages = false;

tests/dimensions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ using Idx = std::size_t;
3434
struct ScatterConfig
3535
{
3636
static constexpr auto pagesize = 4096;
37-
static constexpr auto accessblocksize = 2u * 1024u * 1024u * 1024u;
37+
static constexpr auto accessblocksize = 256u * 1024u;
3838
static constexpr auto regionsize = 16;
3939
static constexpr auto wastefactor = 2;
4040
static constexpr auto resetfreedpages = false;

tests/policies.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ using Acc = alpaka::AccGpuCudaRt<Dim, Idx>;
3636
struct ScatterConfig
3737
{
3838
static constexpr auto pagesize = 4096;
39-
static constexpr auto accessblocksize = 8;
39+
static constexpr auto accessblocksize = 256U * 1024U;
4040
static constexpr auto regionsize = 16;
4141
static constexpr auto wastefactor = 2;
4242
static constexpr auto resetfreedpages = false;

0 commit comments

Comments
 (0)