Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/metal.jl
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,11 @@ pass_by_value(job::CompilerJob{MetalCompilerTarget}) = false

## job

# TODO: encode debug build or not in the compiler job
# https://github.com/JuliaGPU/CUDAnative.jl/issues/368
runtime_slug(job::CompilerJob{MetalCompilerTarget}) = "metal-macos$(job.config.target.macos)"
# the debug-info level is part of the slug (as on PTX): it changes the debug metadata emitted
# into the runtime library, and the device-exception reporters branch on it, so a library
# built at one level must not be reused at another.
runtime_slug(job::CompilerJob{MetalCompilerTarget}) =
"metal-macos$(job.config.target.macos)-debuginfo=$(Int(llvm_debug_info(job)))"

isintrinsic(@nospecialize(job::CompilerJob{MetalCompilerTarget}), fn::String) =
return startswith(fn, "air.")
Expand Down
Loading