Skip to content

Commit

Permalink
Fit accessblocksize into heap for examples and tests (#247)
Browse files Browse the repository at this point in the history
* Fit accessblocksize into heap

* Fit accessblocksize into heap for tests
  • Loading branch information
chillenzer authored Aug 23, 2024
1 parent 39f8dbf commit 04a6159
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/mallocMC_example01.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ using Acc = alpaka::ExampleDefaultAcc<Dim, Idx>;
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;
Expand Down
2 changes: 1 addition & 1 deletion examples/mallocMC_example03.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ using Acc = alpaka::ExampleDefaultAcc<Dim, Idx>;
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;
Expand Down
2 changes: 1 addition & 1 deletion tests/dimensions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion tests/policies.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ using Acc = alpaka::AccGpuCudaRt<Dim, Idx>;
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;
Expand Down

0 comments on commit 04a6159

Please sign in to comment.