Skip to content

Commit

Permalink
extent test on AMD GPU
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Barth committed Nov 28, 2024
1 parent f05eb6c commit 621a6dd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/test_reconstruct_points.jl
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
ENV["CUDA_VISIBLE_DEVICES"]=""
#ENV["CUDA_VISIBLE_DEVICES"]=""

using DINCAE
using NCDatasets
using Random
using Test
using CUDA
using AMDGPU

T = Float32
filename = "subset-sla-train.nc"
Expand Down Expand Up @@ -58,6 +59,8 @@ Random.seed!(seed)
Atype =
if CUDA.functional()
CuArray{T}
elseif AMDGPU.functional()
ROCArray{T}
else
Array{T}
end
Expand Down
3 changes: 3 additions & 0 deletions test/test_reconstruct_points_laplacian.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ using NCDatasets
using Random
using Test
using CUDA
using AMDGPU

T = Float32
filename = "subset-sla-train.nc"
Expand Down Expand Up @@ -60,6 +61,8 @@ Random.seed!(seed)
Atype =
if CUDA.functional()
CuArray{T}
elseif AMDGPU.functional()
ROCArray{T}
else
Array{T}
end
Expand Down

0 comments on commit 621a6dd

Please sign in to comment.