openxla / xla

A machine learning compiler for GPUs, CPUs, and ML accelerators
Apache License 2.0
2.64k stars 418 forks source link

[XLA:CPU] Add efficient 1D sort thunk implementation #17979

Closed copybara-service[bot] closed 8 hours ago

copybara-service[bot] commented 1 week ago

[XLA:CPU] Add efficient 1D sort thunk implementation

Use standard sort with standard type-specific compare function. Stable sort becomes x3.8 times faster, unstable x2.5 times faster.

google-cla[bot] commented 1 week ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.