Skip to content

Commit

Permalink
disable mtlprintf on older macOS versions
Browse files Browse the repository at this point in the history
  • Loading branch information
tgymnich committed Oct 1, 2024
1 parent a877e7f commit f70ccac
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/compiler/execution.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
export @metal

# Disable the mtlprintf feature at macro expand time for older macOS versions since
# the dynamic check on the GPU hangs due to a Metal.jl bug.
@static if Metal.macos_version() >= v"15"

## high-level @metal interface

Expand Down Expand Up @@ -353,3 +356,7 @@ end
ws = pipe.threadExecutionWidth
return threads - Base.rem(threads, ws)
end

else
@warn "Disabling @mtlprintf on macOS versions < 15"
end

0 comments on commit f70ccac

Please sign in to comment.