Thrust Example

With Thrust library support in GPU Coder™, you can take advantage of GPU-accelerated primitives such as sort to implement
complex high-performance parallel applications. When your MATLAB® code uses gpucoder.sort
function instead of sort, GPU Coder can generate calls to the Thrust sort primitives.

This example generates CUDA® code to sort the columns of a matrix in descending order. In one file, write an
entry-point function mySort that accepts a matrix inputs
A. Use the gpucoder.sort function to sort the columns
of A in descending order.

This website uses cookies to improve your user experience, personalize content and ads, and analyze website traffic. By continuing to use this website, you consent to our use of cookies. Please see our Privacy Policy to learn more about cookies and how to change your settings.