Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pyopencl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andreas Klöckner
pyopencl
Commits
a37681d4
Commit
a37681d4
authored
5 years ago
by
Andreas Klöckner
Browse files
Options
Downloads
Patches
Plain Diff
Add advice about keeping NannyEvents to enqueue_copy doc (Thanks, Yves Surrel)
parent
680f909e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#19948
passed with warnings
5 years ago
Stage: test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pyopencl/__init__.py
+8
-1
8 additions, 1 deletion
pyopencl/__init__.py
with
8 additions
and
1 deletion
pyopencl/__init__.py
+
8
−
1
View file @
a37681d4
...
...
@@ -1529,10 +1529,17 @@ def enqueue_copy(queue, dest, src, **kwargs):
:arg wait_for: (optional, default empty)
:arg is_blocking: Wait for completion. Defaults to *True*.
(Available on any copy involving host memory)
:return: A :class:`NannyEvent` if the transfer involved a
host-side buffer, otherwise an :class:`Event`.
.. note::
Be aware that when the deletion of the :class:`NannyEvent` that is
returned by the function if the transfer involved a host-side buffer
will block until the transfer is complete, so be sure to keep a
reference to this :class:`Event` as long as necessary for the
transfer to complete.
.. note::
Two types of
'
buffer
'
occur in the arguments to this function,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment