Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/initialization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ function __init__()
end

# if we're not running under an external profiler, let CUPTI handle NVTX events
if !NVTX.isactive() && CUPTI.version() != v"13.0" # NVIDIA/NVTX#125
if !NVTX.isactive() && CUPTI.version() != v"13.0.0" # NVIDIA/NVTX#125
ENV["NVTX_INJECTION64_PATH"] = CUDA_Runtime.libcupti
NVTX.activate()
end
Expand Down Expand Up @@ -209,13 +209,13 @@ function __init__()
"cublas", "cupti", "cusparse", "cufft", "curand", "cusolver"]
for lib in Libdl.dllist()
contains(lib, "artifacts") && continue

# skip driver store directories on Windows - these contain legitimate libraries
# that are part of the display driver installation (at least on CUDA 13+)
if Sys.iswindows() && contains(lib, "DriverStore")
continue
end

if any(rtlib -> contains(lib, rtlib), runtime_libraries)
@warn """CUDA runtime library `$(basename(lib))` was loaded from a system path, `$lib`.
This may cause errors.
Expand Down
4 changes: 4 additions & 0 deletions test/core/profile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ let
@test occursin("cuCtxGetCurrent", str)
end

if CUPTI.version() != v"13.0.0" # NVIDIA/NVTX#125

# NVTX markers
let
str = string(CUDA.@profile trace=true NVTX.@mark "a marker")
Expand All @@ -88,6 +90,8 @@ let
@test occursin("a range", str)
end

end

end
end

Expand Down