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
17926525
Commit
17926525
authored
6 years ago
by
Andreas Klöckner
Browse files
Options
Downloads
Patches
Plain Diff
[pybind] Add pypy workaround for enqueue_fill_buffer
parent
c50765f3
No related branches found
No related tags found
1 merge request
!44
Pybind11
Pipeline
#13125
passed with warnings
6 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pyopencl/__init__.py
+4
-0
4 additions, 0 deletions
pyopencl/__init__.py
with
4 additions
and
0 deletions
pyopencl/__init__.py
+
4
−
0
View file @
17926525
...
...
@@ -1831,6 +1831,10 @@ def enqueue_fill_buffer(queue, mem, pattern, offset, size, wait_for=None):
from
warnings
import
warn
warn
(
"
The context for this queue does not declare OpenCL 1.2 support, so
"
"
the next thing you might see is a crash
"
)
if
_PYPY
and
isinstance
(
pattern
,
np
.
generic
):
pattern
=
np
.
asarray
(
pattern
)
return
_cl
.
_enqueue_fill_buffer
(
queue
,
mem
,
pattern
,
offset
,
size
,
wait_for
)
# }}}
...
...
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