File tree 1 file changed +2
-2
lines changed
arcane/src/arcane/accelerator/cuda
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ class UnifiedMemoryCudaMemoryAllocator
121
121
_applyHint (ptr.baseAddress (), ptr.size (), new_args);
122
122
}
123
123
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
125
125
{
126
126
wanted_capacity = AlignedMemoryAllocator3::adjustedCapacity (args, wanted_capacity, element_size);
127
127
const bool do_page = m_page_allocate_level > 0 ;
@@ -173,7 +173,7 @@ class UnifiedMemoryCudaMemoryAllocator
173
173
return ::cudaFree (ptr);
174
174
}
175
175
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
177
177
{
178
178
auto r = ::cudaMallocManaged (ptr, new_size, cudaMemAttachGlobal);
179
179
void * p = *ptr;
You can’t perform that action at this time.
0 commit comments