Skip to content
Snippets Groups Projects
Commit bc556567 authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Add clarifying comment ot opencljit (change of kernel name)

We cannot compile with kernel name `kernel` since `kernel==__kernel` is
a keyword in OpenCL
parent fafa5794
No related merge requests found
......@@ -30,6 +30,7 @@ def make_python_function(kernel_function_node, opencl_queue, opencl_ctx, argumen
if argument_dict is None:
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
header_list = ['"opencl_stdint.h"'] + list(get_headers(kernel_function_node))
includes = "\n".join(["#include %s" % (include_file,) for include_file in header_list])
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment