Skip to content

Commit

Permalink
better amd gpu errs
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Jun 15, 2024
1 parent cc97790 commit 4d19183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1599,7 +1599,7 @@ function emit_error(B::LLVM.IRBuilder, orig, string)
string*=sprint(io->Base.show_backtrace(io, bt))
end

ct = if occursin("ptx", LLVM.triple(mod))
ct = if occursin("ptx", LLVM.triple(mod)) || occursin("amdgcn", LLVM.triple(mod))
GPUCompiler.emit_exception!(B, string, orig)
else
call!(B, funcT, func, LLVM.Value[globalstring_ptr!(B, string)])
Expand Down

0 comments on commit 4d19183

Please sign in to comment.