From eea0beae081a20a87ddcf8040550468cd49a88c9 Mon Sep 17 00:00:00 2001 From: Eduardo Cueto Mendoza Date: Sun, 5 Jul 2020 16:56:31 -0600 Subject: [PATCH] Solved a issue with linux, still have to check linux if nvidia-smi is, powerstat of free are missing --- test/runtests.jl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index f60fa6a..9825385 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -17,9 +17,11 @@ using Flux rn = RNN(3,6) #maxo = Maxout(()->Dense(35, 27), 4) maxo = Maxout((12,12)) - @test_throws Base.IOError GreenFlux.gpupowerdraw() - @test_throws Base.IOError GreenFlux.cpupowerdraw() - @test_throws Base.IOError GreenFlux.rampowerdraw() + if Sys.isapple() + @test_throws Base.IOError GreenFlux.gpupowerdraw() + @test_throws Base.IOError GreenFlux.cpupowerdraw() + @test_throws Base.IOError GreenFlux.rampowerdraw() + end if Sys.islinux() @test typeof(avgpowerdraw()) <: Float64 end