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
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
Timothy Smith
pyopencl
Commits
e2495c60
Commit
e2495c60
authored
6 years ago
by
Matt Wala
Browse files
Options
Downloads
Patches
Plain Diff
Update docs to state that we allow arrays or memoryobjects.
parent
e6ba51c0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pyopencl/algorithm.py
+5
-2
5 additions, 2 deletions
pyopencl/algorithm.py
with
5 additions
and
2 deletions
pyopencl/algorithm.py
+
5
−
2
View file @
e2495c60
...
...
@@ -1042,8 +1042,8 @@ class ListOfListsBuilder:
def
__call__
(
self
,
queue
,
n_objects
,
*
args
,
**
kwargs
):
"""
:arg args: arguments corresponding to arg_decls in the constructor.
:class:`pyopencl.array.Array` are not allowed directly and should
be passed as their :attr:`pyopencl.array.Array.data` attribute instead
.
Arguments must be either 1D :class:`pyopencl.array.Array
'
objects
or :class:`pyopencl.MemoryObject
'
objects
.
:arg allocator: optionally, the allocator to use to allocate new
arrays.
:arg omit_lists: An iterable of list names that should *not* be built
...
...
@@ -1124,6 +1124,9 @@ class ListOfListsBuilder:
"
but the argument is not an array.
"
%
i
)
continue
if
arg_val
.
ndim
!=
1
:
raise
ValueError
(
"
Only 1D arrays supported
"
)
data_args
.
append
(
arg_val
.
base_data
)
if
arg_descr
.
with_offset
:
data_args
.
append
(
arg_val
.
offset
)
...
...
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