Skip to content

Commit edfdc1a

Browse files
committed
Include the PTX ISA in the runtime slug.
1 parent b23fe47 commit edfdc1a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ptx.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,9 @@ isintrinsic(@nospecialize(job::CompilerJob{PTXCompilerTarget}), fn::String) =
9494

9595
# XXX: the debuginfo part should be handled by GPUCompiler as it applies to all back-ends.
9696
runtime_slug(@nospecialize(job::CompilerJob{PTXCompilerTarget})) =
97-
"ptx-sm_$(job.config.target.cap.major)$(job.config.target.cap.minor)" *
98-
"-debuginfo=$(Int(llvm_debug_info(job)))"
97+
"ptx$(job.config.target.ptx.major)$(job.config.target.ptx.minor)" *
98+
"-sm_$(job.config.target.cap.major)$(job.config.target.cap.minor)" *
99+
"-debuginfo=$(Int(llvm_debug_info(job)))"
99100

100101
function finish_module!(@nospecialize(job::CompilerJob{PTXCompilerTarget}),
101102
mod::LLVM.Module, entry::LLVM.Function)

0 commit comments

Comments
 (0)