Skip to content

Commit b8a7c58

Browse files
authored
Make ReservePoolPolicies owning (alpaka-group#250)
1 parent 1aaf9de commit b8a7c58

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/include/mallocMC/allocator.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ namespace mallocMC
166166
ALPAKA_FN_HOST void free()
167167
{
168168
devAllocatorBuffer = {};
169-
reservePolicy.resetMemPool(heapInfos.p);
169+
reservePolicy.resetMemPool();
170170
heapInfos.size = 0;
171171
heapInfos.p = nullptr;
172172
}

src/include/mallocMC/reservePoolPolicies/AlpakaBuf.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ namespace mallocMC
4545
return alpaka::getPtrNative(*poolBuffer);
4646
}
4747

48-
void resetMemPool(void* p)
48+
void resetMemPool()
4949
{
5050
poolBuffer = {};
5151
}

src/include/mallocMC/reservePoolPolicies/CudaSetLimits.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ namespace mallocMC
6363
return nullptr;
6464
}
6565

66-
static void resetMemPool(void* p = nullptr)
66+
static void resetMemPool()
6767
{
6868
cudaDeviceSetLimit(cudaLimitMallocHeapSize, 8192U);
6969
cudaGetLastError(); // cudaDeviceSetLimit() usually fails if any

0 commit comments

Comments
 (0)