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
08a4b813
Commit
08a4b813
authored
10 years ago
by
Andreas Klöckner
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into yuyichao-master-fixes
parents
818b2d55
fb4da120
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
doc/_templates/layout.html
+1
-1
1 addition, 1 deletion
doc/_templates/layout.html
pyopencl/compyte
+1
-1
1 addition, 1 deletion
pyopencl/compyte
src/wrapper/wrap_cl.hpp
+17
-4
17 additions, 4 deletions
src/wrapper/wrap_cl.hpp
with
19 additions
and
6 deletions
doc/_templates/layout.html
+
1
−
1
View file @
08a4b813
{% extends "!layout.html" %}
{% set
css_files = css_files +
['_static/akdoc.css']%}
{% set
bootswatch_css_custom =
['_static/akdoc.css']%}
This diff is collapsed.
Click to expand it.
compyte
@
2293b43e
Compare
c5e80622
...
2293b43e
Subproject commit
c5e80622ee2dfd129d56886098a5ad532c54cf09
Subproject commit
2293b43ecfadfd4ea2adc9266c8ec18f2ae0ce11
This diff is collapsed.
Click to expand it.
src/wrapper/wrap_cl.hpp
+
17
−
4
View file @
08a4b813
...
...
@@ -2420,6 +2420,8 @@ namespace pyopencl
std
::
auto_ptr
<
py_buffer_wrapper
>
retained_buf_obj
;
if
(
buffer
.
ptr
()
!=
Py_None
)
{
retained_buf_obj
=
std
::
auto_ptr
<
py_buffer_wrapper
>
(
new
py_buffer_wrapper
);
int
py_buf_flags
=
PyBUF_ANY_CONTIGUOUS
;
if
((
flags
&
CL_MEM_USE_HOST_PTR
)
&&
((
flags
&
CL_MEM_READ_WRITE
)
...
...
@@ -2564,6 +2566,8 @@ namespace pyopencl
std
::
auto_ptr
<
py_buffer_wrapper
>
retained_buf_obj
;
if
(
buffer
.
ptr
()
!=
Py_None
)
{
retained_buf_obj
=
std
::
auto_ptr
<
py_buffer_wrapper
>
(
new
py_buffer_wrapper
);
int
py_buf_flags
=
PyBUF_ANY_CONTIGUOUS
;
if
((
flags
&
CL_MEM_USE_HOST_PTR
)
&&
((
flags
&
CL_MEM_READ_WRITE
)
...
...
@@ -3586,7 +3590,16 @@ namespace pyopencl
#ifdef PYOPENCL_USE_NEW_BUFFER_INTERFACE
py_buffer_wrapper
buf_wrapper
;
buf_wrapper
.
get
(
py_buffer
.
ptr
(),
PyBUF_ANY_CONTIGUOUS
);
try
{
buf_wrapper
.
get
(
py_buffer
.
ptr
(),
PyBUF_ANY_CONTIGUOUS
);
}
catch
(
py
::
error_already_set
)
{
PyErr_Clear
();
throw
error
(
"Kernel.set_arg"
,
CL_INVALID_VALUE
,
"invalid kernel argument"
);
}
buf
=
buf_wrapper
.
m_buf
.
buf
;
len
=
buf_wrapper
.
m_buf
.
len
;
...
...
@@ -3889,7 +3902,7 @@ namespace pyopencl
class
gl_buffer
:
public
memory_object
{
public:
gl_buffer
(
cl_mem
mem
,
bool
retain
,
py
::
objec
t
*
hostbuf
=
0
)
gl_buffer
(
cl_mem
mem
,
bool
retain
,
hostbuf_
t
hostbuf
=
hostbuf_t
()
)
:
memory_object
(
mem
,
retain
,
hostbuf
)
{
}
};
...
...
@@ -3900,7 +3913,7 @@ namespace pyopencl
class
gl_renderbuffer
:
public
memory_object
{
public:
gl_renderbuffer
(
cl_mem
mem
,
bool
retain
,
py
::
objec
t
*
hostbuf
=
0
)
gl_renderbuffer
(
cl_mem
mem
,
bool
retain
,
hostbuf_
t
hostbuf
=
hostbuf_t
()
)
:
memory_object
(
mem
,
retain
,
hostbuf
)
{
}
};
...
...
@@ -3911,7 +3924,7 @@ namespace pyopencl
class
gl_texture
:
public
image
{
public:
gl_texture
(
cl_mem
mem
,
bool
retain
,
py
::
objec
t
*
hostbuf
=
0
)
gl_texture
(
cl_mem
mem
,
bool
retain
,
hostbuf_
t
hostbuf
=
hostbuf_t
()
)
:
image
(
mem
,
retain
,
hostbuf
)
{
}
...
...
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