Skip to content

Commit a8b7441

Browse files
hmt23grospelliergilles
authored andcommitted
[arcane] missing override keyword
1 parent 796ef8d commit a8b7441

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arcane/src/arcane/accelerator/cuda/CudaAccelerator.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class UnifiedMemoryCudaMemoryAllocator
121121
_applyHint(ptr.baseAddress(), ptr.size(), new_args);
122122
}
123123

124-
Int64 adjustedCapacity(MemoryAllocationArgs args, Int64 wanted_capacity, Int64 element_size) const
124+
Int64 adjustedCapacity(MemoryAllocationArgs args, Int64 wanted_capacity, Int64 element_size) const override
125125
{
126126
wanted_capacity = AlignedMemoryAllocator3::adjustedCapacity(args, wanted_capacity, element_size);
127127
const bool do_page = m_page_allocate_level > 0;
@@ -173,7 +173,7 @@ class UnifiedMemoryCudaMemoryAllocator
173173
return ::cudaFree(ptr);
174174
}
175175

176-
cudaError_t _allocate(void** ptr, size_t new_size, MemoryAllocationArgs args)
176+
cudaError_t _allocate(void** ptr, size_t new_size, MemoryAllocationArgs args) override
177177
{
178178
auto r = ::cudaMallocManaged(ptr, new_size, cudaMemAttachGlobal);
179179
void* p = *ptr;

0 commit comments

Comments
 (0)