Skip to content

Commit 977177f

Browse files
authored
Clarify debug level hint. (#2316)
1 parent 7f725c0 commit 977177f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/device/runtime.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ end
5454
function report_exception(ex)
5555
@cuprintf("""
5656
ERROR: a %s was thrown during kernel execution.
57-
Run Julia on debug level 2 for device stack traces.
57+
For stacktrace reporting, run Julia on debug level 2 (by passing -g2 to the executable).
5858
""", ex)
5959
return
6060
end

test/base/exceptions.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ let (proc, out, err) = julia_exec(`-g1 -e $script`)
4242
@test !success(proc)
4343
@test occursin(host_error_re, err)
4444
@test occursin(device_error_re, out)
45-
@test occursin("Run Julia on debug level 2 for device stack traces", out)
45+
@test occursin("run Julia on debug level 2", out)
4646
end
4747

4848
let (proc, out, err) = julia_exec(`-g2 -e $script`)

0 commit comments

Comments
 (0)