Solved a issue with linux, still have to check linux if nvidia-smi is, powerstat of free are missing

This commit is contained in:
Eduardo Cueto Mendoza 2020-07-05 16:56:31 -06:00
parent 4e1dfa873b
commit eea0beae08
1 changed files with 5 additions and 3 deletions

View File

@ -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