Skip to content

Commit

Permalink
Don't expose clCreateProgramWithBuiltInKernels on Apple CL 1.2.
Browse files Browse the repository at this point in the history
(reported by Bogdan Opanchuk)
  • Loading branch information
inducer committed Jul 28, 2012
1 parent ae9253c commit a6294d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/wrapper/wrap_cl.hpp
Expand Up @@ -3006,7 +3006,8 @@ namespace pyopencl



#if PYOPENCL_CL_VERSION >= 0x1020
#if (PYOPENCL_CL_VERSION >= 0x1020) && \
((PYOPENCL_CL_VERSION >= 0x1030) && defined(__APPLE__))
inline
program *create_program_with_built_in_kernels(
context &ctx,
Expand All @@ -3033,9 +3034,11 @@ namespace pyopencl
throw;
}
}
#endif



#if PYOPENCL_CL_VERSION >= 0x1020
inline
program *link_program(
context &ctx,
Expand Down
3 changes: 2 additions & 1 deletion src/wrapper/wrap_cl_part_2.cpp
Expand Up @@ -196,7 +196,8 @@ void pyopencl_expose_part_2()
create_program_with_binary,
py::default_call_policies(),
py::args("context", "devices", "binaries")))
#if PYOPENCL_CL_VERSION >= 0x1020
#if (PYOPENCL_CL_VERSION >= 0x1020) && \
((PYOPENCL_CL_VERSION >= 0x1030) && defined(__APPLE__))
.def("create_with_built_in_kernels",
create_program_with_built_in_kernels,
py::args("context", "devices", "kernel_names"),
Expand Down

0 comments on commit a6294d0

Please sign in to comment.