Skip to content

Commit 51921f7

Browse files
authored
Print kernel info that requires hostcall (#642)
1 parent 4eeb92e commit 51921f7

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "AMDGPU"
22
uuid = "21141c5a-9bdb-4563-92ae-f87d6854732e"
33
authors = ["Julian P Samaroo <jpsamaroo@jpsamaroo.me>", "Valentin Churavy <v.churavy@gmail.com>", "Anton Smirnov <tonysmn97@gmail.com>"]
4-
version = "0.9.4"
4+
version = "0.9.5"
55

66
[deps]
77
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"

src/compiler/codegen.jl

+5-2
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,13 @@ function hipcompile(@nospecialize(job::CompilerJob))
181181
push!(global_hostcalls, gbl_name)
182182
end
183183
if !isempty(global_hostcalls)
184-
@warn """Global hostcalls detected: $global_hostcalls.
184+
@warn """Global hostcalls detected!
185+
- Source: $(job.source)
186+
- Hostcalls: $(global_hostcalls)
187+
185188
Use `AMDGPU.synchronize(; stop_hostcalls=false)` to synchronize and stop them.
186189
Otherwise, performance might degrade if they keep running in the background.
187-
""" maxlog=1
190+
"""
188191
end
189192

190193
if !isempty(globals)

0 commit comments

Comments
 (0)