|
1 | 1 | using Random
|
2 | 2 | using DataStructures
|
3 | 3 |
|
4 |
| -@testset "quicksort" begin |
5 |
| - |
6 |
| -import CUDA.QuickSortImpl: flex_lt, find_partition, quicksort!, |
7 |
| - partition_batches_kernel, consolidate_batch_partition, bubble_sort |
| 4 | +import CUDA.QuickSortImpl: flex_lt, find_partition, quicksort!, partition_batches_kernel, |
| 5 | + consolidate_batch_partition, bubble_sort |
8 | 6 |
|
9 | 7 | @testset "integer functions" begin
|
10 | 8 | @test flex_lt(1, 2, false, isless, identity) == true
|
|
279 | 277 | end
|
280 | 278 | end
|
281 | 279 |
|
282 |
| -# XXX: some tests here make compute-sanitizer hang, but only on CI. |
283 |
| -# maybe related to the container set-up? try again once we use Sandbox.jl. |
284 |
| - |
285 | 280 | @testset "interface" begin
|
286 | 281 | @testset "quicksort" begin
|
287 | 282 | # pre-sorted
|
|
389 | 384 | @test check_sortperm(Float64, 1000000; rev=true)
|
390 | 385 | @test check_sortperm(Float64, 1000000; by=x->abs(x-0.5))
|
391 | 386 | @test check_sortperm(Float64, 1000000; rev=true, by=x->abs(x-0.5))
|
392 |
| - |
| 387 | + |
393 | 388 | if VERSION >= v"1.9"
|
394 | 389 | # Base.jl didn't implement sortperm(;dims) until 1.9
|
395 | 390 | @test check_sortperm(Float32, (100_000, 16); dims=1)
|
|
406 | 401 | # mismatched types (JuliaGPU/CUDA.jl#2046)
|
407 | 402 | @test check_sortperm!(collect(UInt64(1):UInt64(1000000)), Int64, 1000000)
|
408 | 403 | end
|
409 |
| - |
410 |
| -end |
0 commit comments