return1
return1

Reputation: 21

OpenCL *open source* Sorting Code that *does not* require input size to be multiple of 2

I am looking for an opensource OpenCL sorting code. the ones available with AMD, Intel and NVIDIA SDK require the input size to be multiple of 2. Bolt library on the other hand is only restricted to AMD platforms. Can anyone point me to such code? thanks

Upvotes: 1

Views: 875

Answers (2)

Kyle Lutz
Kyle Lutz

Reputation: 8036

The open-source Boost.Compute C++ library (which is built on OpenCL) has a sort() function and can sort any arbitrary number of values on the GPU.

Upvotes: 1

ddemidov
ddemidov

Reputation: 1761

Another open-source alternative is VexCL (MIT License). It provides sort() and sort_by_key() functions. See sort.cpp for the examples.

Upvotes: 0

Related Questions