C++ Library Extensions 2022.12.09
To help learn modern C++ programming
cpg_opencl_sycl.hpp File Reference
#include "cpg_types.hpp"
#include <cl/sycl.hpp>
#include <tbb/tbb.h>
#include <regex>
Include dependency graph for cpg_opencl_sycl.hpp:

Go to the source code of this file.

Namespaces

namespace  cpg
 Includes subnamespace conversion.
 
namespace  cpg::opencl_sycl
 
namespace  cpg::opencl_sycl::hidden
 

Macros

#define NOMINMAX
 
#define __SYCL_INTERNAL_API
 

Typedefs

using cpg::opencl_sycl::device_info = sycl::info::device
 
using cpg::opencl_sycl::access = sycl::access::mode
 

Functions

template<typename = int>
std::string cpg::opencl_sycl::hidden::file_contents (const char *fileName)
 
template<typename StringType >
auto cpg::opencl_sycl::hidden::count_lines (StringType &src)
 
template<typename FileNameType , typename CountType , std::size_t N, typename StringType >
auto cpg::opencl_sycl::hidden::error_line_file_name (std::array< FileNameType, N > const &file_names, std::array< CountType, N > const &line_counts, StringType error_line_str)
 
template<typename CharType >
std::basic_string< CharType > cpg::opencl_sycl::hidden::replace_string (std::basic_string< CharType > target, std::basic_string< CharType > const &str_find, std::basic_string< CharType > const &str_replace)
 
template<typename FileNameType , typename CountType , std::size_t N, typename StringType >
auto cpg::opencl_sycl::hidden::parse_error_message (std::array< FileNameType, N > const &file_names, std::array< CountType, N > const &line_counts, StringType error_msg)
 
template<typename... OpenCLFiles>
cl_program cpg::opencl_sycl::hidden::CreateProgram (cl_context context, cl_device_id device, OpenCLFiles... opencl_files)
 
template<typename SycleQueue , typename... OpenCLFiles>
auto cpg::opencl_sycl::create_program (SycleQueue &queue, OpenCLFiles... opencl_files)
 
template<typename ProgramType >
auto cpg::opencl_sycl::create_kernel (ProgramType &program, const char *kernel_name)
 
auto cpg::opencl_sycl::sycl_kernel (auto &opencl_kernel, auto &queue)
 

Macro Definition Documentation

◆ __SYCL_INTERNAL_API

#define __SYCL_INTERNAL_API

Definition at line 16 of file cpg_opencl_sycl.hpp.

◆ NOMINMAX

#define NOMINMAX

Definition at line 10 of file cpg_opencl_sycl.hpp.