Skip to content
This repository was archived by the owner on Sep 21, 2019. It is now read-only.

thrust::sort API failure using hip_port_1.7.3 branch on HIP/CUDA path(NVCC) #9

@sriharikarnam

Description

@sriharikarnam

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)

Metadata

Metadata

Assignees

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