Skip to content

Commit

Permalink
Include compiler options in error log. (#1657)
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Jan 5, 2023
1 parent f921b7a commit b300158
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/compiler/execution.jl
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ end
reason = proc.termsignal > 0 ? "ptxas received signal $(proc.termsignal)" :
"ptxas exited with code $(proc.exitcode)"
msg = "Failed to compile PTX code ($reason)"
msg *= "\nInvocation arguments: $(join(ptxas_opts, ' '))"
if !isempty(log)
msg *= "\n" * log
end
Expand Down Expand Up @@ -452,6 +453,7 @@ end
reason = proc.termsignal > 0 ? "nvlink received signal $(proc.termsignal)" :
"nvlink exited with code $(proc.exitcode)"
msg = "Failed to link PTX code ($reason)"
msg *= "\nInvocation arguments: $(join(nvlink_opts, ' '))"
if !isempty(log)
msg *= "\n" * log
end
Expand Down

0 comments on commit b300158

Please sign in to comment.