Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add kernel_arg.cxx

  • Loading branch information...
commit d9f0dab12c38391434d5b843774913862dfd0e1b 1 parent 9bc403e
@rsky authored
Showing with 39 additions and 1 deletion.
  1. +5 −1 config.m4
  2. +4 −0 kernel.h
  3. +30 −0 kernel_arg.cxx
View
6 config.m4
@@ -37,9 +37,13 @@ if test "$PHP_OPENCL" != "no"; then
export LIBS="$OLD_LIBS"
+ PHP_REQUIRE_CXX()
+
PHPCL_SOURCES="opencl.c params.c"
PHPCL_SOURCES="$PHPCL_SOURCES platform.c device.c context.c queue.c"
PHPCL_SOURCES="$PHPCL_SOURCES memory.c program.c kernel.c event.c sampler.c"
+ PHPCL_SOURCES="$PHPCL_SOURCES kernel_arg.cxx"
+
PHP_SUBST(OPENCL_SHARED_LIBADD)
- PHP_NEW_EXTENSION(opencl, $PHPCL_SOURCES, $ext_shared)
+ PHP_NEW_EXTENSION(opencl, $PHPCL_SOURCES, $ext_shared, "", "", 1)
fi
View
4 kernel.h
@@ -16,6 +16,10 @@ BEGIN_EXTERN_C()
PHPCL_FUNCTION(cl_get_kernel_info);
PHPCL_FUNCTION(cl_create_kernel);
+PHPCL_LOCAL cl_int
+php_cl_set_kernel_arg(cl_kernel kernel, cl_uint arg_index,
+ zval *arg_value, phpcl_c_type_t type TSRMLS_DC);
+
END_EXTERN_C()
#endif
View
30 kernel_arg.cxx
@@ -0,0 +1,30 @@
+/**
+ * The OpenCL PHP extension
+ *
+ * @package php-opencl
+ * @author Ryusuke SEKIYAMA <rsky0711@gmail.com>
+ * @copyright 2012 Ryusuke SEKIYAMA
+ * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ */
+
+#include "kernel.h"
+
+BEGIN_EXTERN_C()
+
+PHPCL_LOCAL cl_int
+php_cl_set_kernel_arg(cl_kernel kernel, cl_uint arg_index,
+ zval *arg_value, phpcl_c_type_t type TSRMLS_DC)
+{
+ return CL_SUCCESS;
+}
+
+END_EXTERN_C()
+
+/*
+* Local variables:
+* tab-width: 4
+* c-basic-offset: 4
+* End:
+* vim600: noet sw=4 ts=4 fdm=marker
+* vim<600: noet sw=4 ts=4
+*/
Please sign in to comment.
Something went wrong with that request. Please try again.