Skip to content

Commit

Permalink
tres
Browse files Browse the repository at this point in the history
  • Loading branch information
christiangnrd committed Dec 26, 2024
1 parent 6ee3750 commit dca120a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/setup.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ if !Sys.isapple()
Sys.exit()
else # if Sys.isapple()
archchecker = occursin(read(`xcrun metal-arch`, String))
@info "testing the continue works to exit if statements like with for loops"
if archchecker("Paravirtual") # Virtualized graphics (probably Github Actions runners)
@info """Metal.jl succesfully loaded on macOS system with unsupported Paravirtual graphics.
Skipping tests."""
Sys.exit()
elseif !archchecker("applegpu") # Every other unsupported system (Intel or AMD graphics)
@info """Metal.jl succesfully loaded on macOS system with unsupported graphics.
Skipping tests."""
(not) Skipping tests."""
# Sys.exit()
end
Sys.exit()
end

Metal.functional() || error("Metal.jl is not functional on this system")
Expand Down

0 comments on commit dca120a

Please # to comment.