Skip to content

Commit

Permalink
format test
Browse files Browse the repository at this point in the history
  • Loading branch information
albert-de-montserrat committed Sep 26, 2024
1 parent 2a2537e commit 2decd8d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/test_save_load.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,18 @@ using JLD2, JustPIC, JustPIC._2D
phase_ratios_cuda = CuArray(phase_ratios2)
phases_cuda = CuArray(phases2)

@test particles_cuda isa JustPIC.Particles{CUDABackend}
@test particles_cuda isa JustPIC.Particles{CUDABackend}
@test phase_ratios_cuda isa JustPIC.PhaseRatios{CUDABackend}
@test phases_cuda isa CuArray
@test phases_cuda isa CuArray

elseif isdefined(Main, :AMDGPU)
particles_amdgpu = ROCArray(particles2)
phase_ratios_amdgpu = ROCArray(phase_ratios2)
phases_amdgpu = ROCArray(phases2)
@test particles_cuda isa JustPIC.Particles{AMDGPUBackend}

@test particles_cuda isa JustPIC.Particles{AMDGPUBackend}
@test phase_ratios_cuda isa JustPIC.PhaseRatios{AMDGPUBackend}
@test phases_cuda isa ROCArray
@test phases_cuda isa ROCArray

end
end

0 comments on commit 2decd8d

Please sign in to comment.