Skip to content

Package Idea: Sorting #134

Open
Open
@RianGoossens

Description

@RianGoossens

Sorting is ubiquitous in software, but kind of tricky to get right on GPU. It would be very useful to have this as a package, for example to write a raytracer.

There's a lot of research out there, a good place to start would be https://developer.nvidia.com/gpugems/gpugems2/part-vi-simulation-and-numerical-algorithms/chapter-46-improved-gpu-sorting

We probably need at least a regular sort and an argsort.

Cubecl traits would be a nice way to implement this, being able to swap out sorting algorithms easily. This would also making testing easier.

  • odd-even transition sort
  • odd-even merge sort
  • bitonic merge sort
  • radix sort
  • other sorting networks?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions