Skip to content

Commit

Permalink
Update reservation policies
Browse files Browse the repository at this point in the history
  • Loading branch information
chillenzer committed Nov 8, 2024
1 parent 99bcf21 commit cc3c172
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/include/mallocMC/reservePoolPolicies/AlpakaBuf.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ namespace mallocMC
return alpaka::getPtrNative(*poolBuffer);
}

void resetMemPool()
void resetMemPool(void* p)
{
poolBuffer = {};
}
Expand Down
2 changes: 1 addition & 1 deletion src/include/mallocMC/reservePoolPolicies/CudaSetLimits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ namespace mallocMC
return nullptr;
}

static void resetMemPool()
static void resetMemPool(void* p = nullptr)
{
cudaDeviceSetLimit(cudaLimitMallocHeapSize, 8192U);
cudaGetLastError(); // cudaDeviceSetLimit() usually fails if any
Expand Down

0 comments on commit cc3c172

Please sign in to comment.