Skip to content

Commit

Permalink
Add test.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Dec 10, 2021
1 parent ed8e86d commit 35b5989
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/sorting.jl
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ end
@test check_sort!(Float64, 10000, x -> rand(Float64); alg=CUDA.QuickSort)
@test check_sort!(Float32, 10000, x -> rand(Float32); alg=CUDA.QuickSort)
@test check_sort!(Float16, 10000, x -> rand(Float16); alg=CUDA.QuickSort)
@test check_sort!(Tuple{Int,Int}, 10000, x -> (rand(Int), rand(Int)); alg=CUDA.QuickSort)

# non-uniform distributions
@test check_sort!(UInt8, 100000, x -> round(255 * rand() ^ 2); alg=CUDA.QuickSort)
Expand Down Expand Up @@ -344,6 +345,7 @@ end
@test check_sort!(Float64, 10000, x -> rand(Float64); alg=CUDA.BitonicSort)
@test check_sort!(Float32, 10000, x -> rand(Float32); alg=CUDA.BitonicSort)
@test check_sort!(Float16, 10000, x -> rand(Float16); alg=CUDA.BitonicSort)
@test check_sort!(Tuple{Int,Int}, 10000, x -> (rand(Int), rand(Int)); alg=CUDA.BitonicSort)

# test various sizes
@test check_sort!(Float32, 1, x -> rand(Float32); alg=CUDA.BitonicSort)
Expand Down

0 comments on commit 35b5989

Please sign in to comment.