Skip to content
Merged
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: 4 additions & 2 deletions test/core/rocarray_base.jl
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,11 @@ end
end
collected = Threads.Atomic{Bool}(false)
wrap_tracked(collected)
t = time()
while !collected[] && time() - t < 10
# a few GC rounds with a device round trip in between; bound by rounds, not time
for _ in 1:100
collected[] && break
GC.gc(true)
AMDGPU.synchronize()
sleep(0.01)
end
@test collected[]
Expand Down
Loading