Skip to content

Commit

Permalink
Fix #2343.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Apr 25, 2024
1 parent 5dd6bb2 commit 6659669
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/compiler/reflection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,16 @@ function code_sass(f::Base.Callable, io::IO=stdout; raw::Bool=false)
return
end

# NVIDIA bug #4604961: CUPTI in CUDA 12.4 Update 1 does not capture profiled events
# unless the activity API is first activated
if runtime_version() == v"12.4"
cfg = CUPTI.ActivityConfig([CUPTI.CUPTI_ACTIVITY_KIND_CONCURRENT_KERNEL,
CUPTI.CUPTI_ACTIVITY_KIND_INTERNAL_LAUNCH_API])
CUPTI.enable!(cfg) do
# do nothing
end
end

seen_modules = Set{UInt32}()
cfg = CUPTI.CallbackConfig([CUPTI.CUPTI_CB_DOMAIN_RESOURCE]) do domain, id, data
# only process relevant callbacks
Expand Down

0 comments on commit 6659669

Please sign in to comment.