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
bbfa6461
There was a problem fetching the pipeline summary.
Commit
bbfa6461
authored
9 years ago
by
Andreas Klöckner
Browse files
Options
Downloads
Patches
Plain Diff
Fix build against CL 1.1
parent
425ca5e2
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cffi_build.py.in
+1
-24
1 addition, 24 deletions
cffi_build.py.in
src/c_wrapper/wrap_cl.h
+14
-5
14 additions, 5 deletions
src/c_wrapper/wrap_cl.h
with
15 additions
and
29 deletions
cffi_build.py.in
+
1
−
24
View file @
bbfa6461
...
...
@@ -48,30 +48,7 @@ if {CL_ENABLE_GL}:
ffi.set_source("pyopencl._cffi",
"""
#ifndef __APPLE__
#include <CL/cl.h>
#ifdef HAVE_GL
#include <GL/gl.h>
#include <CL/cl_gl.h>
#include <CL/cl_gl_ext.h>
#endif
#else
#include <OpenCL/opencl.h>
#ifdef HAVE_GL
#include <OpenGL/OpenGL.h>
#include <OpenCL/cl_gl.h>
#include <OpenCL/cl_gl_ext.h>
#endif
#endif
extern "C" {{
#include <wrap_cl_core.h>
#ifdef HAVE_GL
#include <wrap_cl_gl_core.h>
#endif
}}
#include "wrap_cl.h"
""",
define_macros=list({EXTRA_DEFINES}.items()),
include_dirs=(
...
...
This diff is collapsed.
Click to expand it.
src/c_wrapper/wrap_cl.h
+
14
−
5
View file @
bbfa6461
...
...
@@ -79,7 +79,20 @@ typedef cl_uint cl_kernel_exec_info;
#ifndef CL_VERSION_1_2
typedef
intptr_t
cl_device_partition_property
;
typedef
cl_uint
cl_kernel_arg_info
;
typedef
struct
_cl_image_desc
cl_image_desc
;
typedef
struct
_cl_image_desc
{
cl_mem_object_type
image_type
;
size_t
image_width
;
size_t
image_height
;
size_t
image_depth
;
size_t
image_array_size
;
size_t
image_row_pitch
;
size_t
image_slice_pitch
;
cl_uint
num_mip_levels
;
cl_uint
num_samples
;
cl_mem
buffer
;
}
cl_image_desc
;
typedef
cl_bitfield
cl_mem_migration_flags
;
#endif
...
...
@@ -87,10 +100,6 @@ typedef cl_bitfield cl_mem_migration_flags;
typedef
cl_bitfield
cl_mem_migration_flags_ext
;
#endif
#ifndef cl_ext_device_fission
typedef
cl_ulong
cl_device_partition_property_ext
;
#endif
struct
clbase
;
typedef
clbase
*
clobj_t
;
...
...
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