Skip to content

Commit

Permalink
remove LOADED
Browse files Browse the repository at this point in the history
  • Loading branch information
CarloLucibello committed Oct 20, 2024
1 parent 4ad6248 commit 9562811
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions test/ext_amdgpu/basic.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@test Flux.AMDGPU_LOADED[]

@testset "Basic GPU movement" begin
@test Flux.gpu(rand(Float64, 16)) isa ROCArray{Float32, 1}
@test Flux.gpu(rand(Float64, 16, 16)) isa ROCArray{Float32, 2}
Expand Down
2 changes: 0 additions & 2 deletions test/ext_metal/basic.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@test Flux.METAL_LOADED[]

@testset "Basic GPU movement" begin
@test Flux.gpu(rand(Float64, 16)) isa MtlArray{Float32, 1}
@test Flux.gpu(rand(Float64, 16, 16)) isa MtlArray{Float32, 2}
Expand Down
2 changes: 1 addition & 1 deletion test/functors.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
x = rand(Float32, 10, 10)
if !(Flux.CUDA_LOADED[] || Flux.AMDGPU_LOADED[] || Flux.METAL_LOADED[])
if gpu_device() isa CPUDevice
@test x === gpu(x)
end

Expand Down

0 comments on commit 9562811

Please sign in to comment.