Observed deviation from expected output for thrust::sort API, while testing with hipified thrust, using hip_port_1.7.3 branch
This issue doesn't appear while using native CUB (https://github.com/NVlabs/cub/tree/1.7.3)
Sorting Integers ( Failure Case):
Input: 79 78 62 78 94 40 86 57 40 16 28 54 77 87 93 98
Result:79 78 62 78 94 40 86 57 40 16 28 54 77 87 93 98
Sorting Integers(Expected Result):
Input: 79 78 62 78 94 40 86 57 40 16 28 54 77 87 93 98
Result:16 28 40 40 54 57 62 77 78 78 79 86 87 93 94 98
Steps to reproduce:
$ git clone https://github.com/ROCmSoftwarePlatform/Thrust.git
$ cd Thrust
$ export HIP_PLATFORM=nvcc (For NVCC Platform )
$ cd examples
$ cp sort.cu sort.cpp
$ /opt/rocm/bin/hipcc sort.cpp -I../ -o sort.cpp.out
$./sort.cpp.out
Note: This issue is not seen on HIP/ROCm path(HCC)