Skip to content

Commit 2693a72

Browse files
authored
Clarify the synchronize(ctx)/device_synchronize() docstrings (#2532)
[only docs]
1 parent c563401 commit 2693a72

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/cudadrv/context.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,8 @@ end
292292
"""
293293
synchronize(ctx::Context)
294294
295-
Block for the all operations on `ctx` to complete. This is a heavyweight operation,
296-
typically you only need to call [`synchronize`](@ref) which only synchronizes the stream
295+
Block for all the operations on `ctx` to complete. This is a heavyweight operation,
296+
typically you only need to call [`synchronize()`](@ref) which only synchronizes the stream
297297
associated with the current task.
298298
"""
299299
function synchronize(ctx::CuContext)
@@ -309,8 +309,8 @@ end
309309
"""
310310
device_synchronize()
311311
312-
Block for the all operations on `ctx` to complete. This is a heavyweight operation,
313-
typically you only need to call [`synchronize`](@ref) which only synchronizes the stream
312+
Block for all the operations on the device to complete. This is a heavyweight operation,
313+
typically you only need to call [`synchronize()`](@ref) which only synchronizes the stream
314314
associated with the current task.
315315
316316
On the device, `device_synchronize` acts as a synchronization point for child grids in the

0 commit comments

Comments
 (0)