Skip to content
Closed
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
4 changes: 2 additions & 2 deletions ext/CUDAExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ end

function _sync_with_context(x::Union{Dagger.Processor,Dagger.MemorySpace})
with_context(x) do
CUDA.synchronize()
CUDA.synchronize(stream())
end
end
function sync_with_context(x::Union{Dagger.Processor,Dagger.MemorySpace})
Expand Down Expand Up @@ -391,7 +391,7 @@ Dagger.gpu_with_device(f, proc::CuArrayDeviceProc) =
CUDA.device!(f, proc.device)
function Dagger.gpu_synchronize(proc::CuArrayDeviceProc)
with_context(proc) do
CUDA.synchronize()
CUDA.synchronize(stream())
end
end
function Dagger.gpu_synchronize(::Val{:CUDA})
Expand Down
4 changes: 2 additions & 2 deletions ext/ROCExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ end

function _sync_with_context(x::Union{Dagger.Processor,Dagger.MemorySpace})
with_context(x) do
AMDGPU.synchronize()
AMDGPU.synchronize(stream())
end
end
function sync_with_context(x::Union{Dagger.Processor,Dagger.MemorySpace})
Expand Down Expand Up @@ -364,7 +364,7 @@ Dagger.gpu_with_device(f, proc::ROCArrayDeviceProc) =
AMDGPU.device!(f, AMDGPU.devices()[proc.device_id])
function Dagger.gpu_synchronize(proc::ROCArrayDeviceProc)
with_context(proc) do
AMDGPU.synchronize()
AMDGPU.synchronize(stream())
end
end
function Dagger.gpu_synchronize(::Val{:ROC})
Expand Down
Loading