Skip to content

Commit

Permalink
fix AMDGPU device selection test
Browse files Browse the repository at this point in the history
  • Loading branch information
omlins committed Jan 22, 2024
1 parent 040facc commit 65e3e49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_select_device.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ nprocs = MPI.Comm_size(MPI.COMM_WORLD); # NOTE: these tests can run with any num
@testset "\"AMDGPU\"" begin
me, = init_global_grid(3, 4, 5; quiet=true, init_MPI=false, device_type="AMDGPU");
gpu_id = select_device();
@test gpu_id < length(AMDGPU.devices())
@test gpu_id <= length(AMDGPU.devices())
finalize_global_grid(finalize_MPI=false);
end;
@testset "\"auto\"" begin
me, = init_global_grid(3, 4, 5; quiet=true, init_MPI=false, device_type="auto");
gpu_id = select_device();
@test gpu_id < length(AMDGPU.devices())
@test gpu_id <= length(AMDGPU.devices())
finalize_global_grid(finalize_MPI=false);
end;
end
Expand Down

0 comments on commit 65e3e49

Please sign in to comment.