#ifndef TEST_CONFORMANCE_CLCPP_UTILS_COMMON_KERNEL_HELPERS_HPP
#define TEST_CONFORMANCE_CLCPP_UTILS_COMMON_KERNEL_HELPERS_HPP
#include "../common.hpp"
int create_opencl_kernel(cl_context context,
cl_program *out_program,
cl_kernel *out_kernel,
const char *source,
const std::string& kernel_name,
const std::string& build_options = "",
const bool openclCXX = true)
{
return create_single_kernel_helper(
context, out_program, out_kernel, 1, &source,
kernel_name.c_str(), build_options.c_str(), openclCXX
);
}
int create_opencl_kernel(cl_context context,
cl_program *out_program,
cl_kernel *out_kernel,
const std::string& source,
const std::string& kernel_name,
const std::string& build_options = "",
const bool openclCXX = true)
{
return create_opencl_kernel(
context, out_program, out_kernel,
source.c_str(), kernel_name, build_options, openclCXX
);
}
#endif