Skip to content
Snippets Groups Projects

Basic support for OpenCL (experimental)

Merged Stephan Seitz requested to merge seitz/pystencils:opencl-backend into master
Viewing commit bc556567
Show latest version
1 file
+ 1
0
Preferences
Compare changes
@@ -30,6 +30,7 @@ def make_python_function(kernel_function_node, opencl_queue, opencl_ctx, argumen
@@ -30,6 +30,7 @@ def make_python_function(kernel_function_node, opencl_queue, opencl_ctx, argumen
if argument_dict is None:
if argument_dict is None:
argument_dict = {}
argument_dict = {}
 
# Changing of kernel name necessary since compilation with default name "kernel" is not possible (OpenCL keyword!)
kernel_function_node.function_name = "opencl_" + kernel_function_node.function_name
kernel_function_node.function_name = "opencl_" + kernel_function_node.function_name
header_list = ['"opencl_stdint.h"'] + list(get_headers(kernel_function_node))
header_list = ['"opencl_stdint.h"'] + list(get_headers(kernel_function_node))
includes = "\n".join(["#include %s" % (include_file,) for include_file in header_list])
includes = "\n".join(["#include %s" % (include_file,) for include_file in header_list])