@@ -1046,8 +1046,8 @@ bool sortDataZeroCopy(
10461046 constexpr auto numPasses = Params::_NUM_PASSES;
10471047
10481048 RandomDistributed<DataType> dataset (numElements);
1049- RadixSortGPU<DataType> sorter;
1050- [[maybe_unused]] const uint32_t nr = RadixSortGPU<DataType> ::Resize (numElements);
1049+ RadixSortGPU sorter;
1050+ [[maybe_unused]] const uint32_t nr = RadixSortGPU::Resize (numElements);
10511051 assert (nr == numRounded);
10521052
10531053 // Write random data directly into the mapped Vulkan unsorted buffer.
@@ -1073,16 +1073,16 @@ bool sortDataZeroCopy(
10731073 {dstSorted, numRounded},
10741074 };
10751075
1076- auto status = sorter.initialize (
1076+ auto status = sorter.initialize <DataType> (
10771077 compute.device (), compute.m_CLContext ,
10781078 numElements, spans);
10791079 if (status != OperationStatus::OK ) return false ;
10801080
10811081 auto & q = compute.m_CLCommandQueue ;
10821082 if (numRounded != numElements)
1083- sorter.padGPUData (q, sizeof (DataType) * numElements);
1083+ sorter.padGPUData <DataType> (q, sizeof (DataType) * numElements);
10841084
1085- status = sorter.uploadData (q);
1085+ status = sorter.uploadData <DataType> (q);
10861086 if (status != OperationStatus::OK ) return false ;
10871087
10881088 // Run pass-by-pass, capturing all intermediate buffer states.
@@ -1092,7 +1092,7 @@ bool sortDataZeroCopy(
10921092 sorter.Reorder (q, pass);
10931093
10941094 // Download all buffers to scratch
1095- status = sorter.downloadKeys (q);
1095+ status = sorter.downloadKeys <DataType> (q);
10961096 if (status != OperationStatus::OK ) return false ;
10971097 status = sorter.downloadIntermediate (q);
10981098 if (status != OperationStatus::OK ) return false ;
@@ -1165,7 +1165,7 @@ int main()
11651165 createCommandPool (app);
11661166
11671167 // Determine padded size and create mapped Vulkan storage buffers.
1168- const uint32_t numRounded = RadixSortGPU< uint32_t >{}. Resize (NUM_ELEMENTS );
1168+ const uint32_t numRounded = RadixSortGPU:: Resize (NUM_ELEMENTS );
11691169 createMappedDataBuffers (app, numRounded);
11701170 auto * unsortedPtr = static_cast <uint32_t *>(app.mappedUnsorted );
11711171
0 commit comments