File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ template <int ALLOCATIONS>
3838cudaError_t AliasTemporaries (void * d_temp_storage,
3939 size_t & temp_storage_bytes,
4040 void * (&allocations)[ALLOCATIONS],
41- const size_t (&allocation_sizes)[ALLOCATIONS])
41+ size_t const (&allocation_sizes)[ALLOCATIONS])
4242{
4343 constexpr size_t ALIGN_BYTES = 256 ;
4444 constexpr size_t ALIGN_MASK = ~(ALIGN_BYTES - 1 );
@@ -47,7 +47,7 @@ cudaError_t AliasTemporaries(void* d_temp_storage,
4747 size_t allocation_offsets[ALLOCATIONS];
4848 size_t bytes_needed = 0 ;
4949 for (int i = 0 ; i < ALLOCATIONS; ++i) {
50- const size_t allocation_bytes = (allocation_sizes[i] + ALIGN_BYTES - 1 ) & ALIGN_MASK;
50+ size_t const allocation_bytes = (allocation_sizes[i] + ALIGN_BYTES - 1 ) & ALIGN_MASK;
5151 allocation_offsets[i] = bytes_needed;
5252 bytes_needed += allocation_bytes;
5353 }
You can’t perform that action at this time.
0 commit comments