Skip to content

Commit 7654d0e

Browse files
committed
Fix ALICE3 external allocator calls
1 parent 41f036c commit 7654d0e

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

‎Detectors/Upgrades/ALICE3/GlobalReconstruction/reconstruction/include/ALICE3GlobalReconstruction/GPUExternalAllocator.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class GPUExternalAllocator final : public o2::its::ExternalAllocator
3030
GPUExternalAllocator() = default;
3131
~GPUExternalAllocator();
3232

33-
void* allocate(size_t size) override;
33+
void* allocate(size_t size, Type type) override;
3434
void deallocate(char* ptr, size_t size) override;
3535
void pushTagOnStack(uint64_t tag) override;
3636
void popTagOffStack(uint64_t tag) override;

‎Detectors/Upgrades/ALICE3/GlobalReconstruction/reconstruction/src/GPUExternalAllocator.cu‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,8 @@ GPUExternalAllocator::~GPUExternalAllocator()
3737
releaseAll();
3838
}
3939

40-
void* GPUExternalAllocator::allocate(size_t size)
40+
void* GPUExternalAllocator::allocate(size_t size, Type type)
4141
{
42-
const auto type = static_cast<MemoryType>(getType());
4342
const bool useHost = (type & static_cast<MemoryType>(o2::gpu::GPUMemoryResource::MEMORY_HOST)) != 0;
4443
const bool useStack = (type & static_cast<MemoryType>(o2::gpu::GPUMemoryResource::MEMORY_STACK)) != 0;
4544

0 commit comments

Comments
 (0)