Skip to content

Commit c30ede9

Browse files
committed
Don't invoke the GC when profiling.
This makes profiling runs potentially ridiculously expensive.
1 parent d6dd9b1 commit c30ede9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/profile.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,6 @@ function profile_internally(f; concurrent=true, kwargs...)
267267

268268
# wait for the device to become idle (and trigger a GC to avoid interference)
269269
CUDA.cuCtxSynchronize()
270-
GC.gc(false)
271-
GC.gc(true)
272270

273271
CUPTI.enable!(cfg) do
274272
# sink the initial profiler overhead into a synchronization call

0 commit comments

Comments
 (0)