2
votes

Does Metal have functionality similar to CUDA's thrust::sort or is one expected to write their own sort function?

1
CUDA does not have one either. Thrust is a 3rd party library that offers interoperability with CUDA, TBB, OpenMP and so on.gpu3d

1 Answers

0
votes

Apple's Accelerate framework has useful vector operations in the vDSP package. Sorting, specifically, can be found here.

https://developer.apple.com/documentation/accelerate/vdsp/reversing_and_sorting_functions