Skip to content

Commit

Permalink
Small perf fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Nov 1, 2023
1 parent 2ae5376 commit 1bd648f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cudadrv/synchronization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ function nonblocking_synchronize(val)
chan = @inbounds sync_channels[i]

# submit the object to synchronize
res = put!(chan, val)
res = put!(chan, val)::CUresult
# this `put!` blocks until the worker has finished processing and returned value
# (which is different from regular channels)
if res != SUCCESS
Expand Down

0 comments on commit 1bd648f

Please sign in to comment.