m4rs-mt / ILGPU.Algorithms

The new standard algorithms library for ILGPU

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"AlgorithmsRadixSort" can't sort long properly, and also fails under CPU

GeoBIM2020 opened this issue · comments

It will give something like following result (negative is listed behind positive) if there are negative long in the array.
1,2,3,4,5,-5,-4,-3,-2,-1

It also throws error message if accelarator is CPU

The radix-sort algorithm that is currently implemented assumes unsigned values. We could add support for negative values in the future by taking the sign bit into account.