Skip to content

Commit 6ec9913

Browse files
authored
Re-enable NVTX on Windows. (#2665)
1 parent ac1657e commit 6ec9913

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ LazyArtifacts = "1"
7070
Libdl = "1"
7171
LinearAlgebra = "1"
7272
Logging = "1"
73-
NVTX = "0.3.2"
73+
NVTX = "1"
7474
Preferences = "1"
7575
PrettyTables = "2"
7676
Printf = "1"

src/initialization.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,7 @@ function __init__()
160160
end
161161

162162
# if we're not running under an external profiler, let CUPTI handle NVTX events
163-
# XXX: JuliaGPU/NVTX.jl#37
164-
if !NVTX.isactive() && !Sys.iswindows()
163+
if !NVTX.isactive()
165164
ENV["NVTX_INJECTION64_PATH"] = CUDA_Runtime.libcupti
166165
NVTX.activate()
167166
end
@@ -218,7 +217,7 @@ function __init__()
218217
if any(rtlib -> contains(lib, rtlib), runtime_libraries)
219218
@warn """CUDA runtime library `$(basename(lib))` was loaded from a system path, `$lib`.
220219
This may cause errors.
221-
220+
222221
If you're running under a profiler, this situation is expected. Otherwise,
223222
ensure that your library path environment variable (e.g., `PATH` on Windows
224223
or `LD_LIBRARY_PATH` on Linux) does not include CUDA library paths.

test/core/profile.jl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,6 @@ let
7474
@test occursin("cuCtxGetCurrent", str)
7575
end
7676

77-
# JuliaGPU/NVTX.jl#37
78-
if !Sys.iswindows()
79-
8077
# NVTX markers
8178
let
8279
str = string(CUDA.@profile trace=true NVTX.@mark "a marker")
@@ -91,8 +88,6 @@ let
9188
@test occursin("a range", str)
9289
end
9390

94-
end
95-
9691
end
9792
end
9893

0 commit comments

Comments
 (0)