-
Notifications
You must be signed in to change notification settings - Fork 158
Expand file tree
/
Copy pathFile.hpp
More file actions
39 lines (27 loc) · 1.19 KB
/
File.hpp
File metadata and controls
39 lines (27 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#pragma once
// OpenCL SDK includes
#include "OpenCLUtilsCpp_Export.h"
#include <CL/Utils/Error.hpp>
// OpenCL includes
#include <CL/opencl.hpp>
namespace cl {
namespace util {
std::string UTILSCPP_EXPORT read_text_file(const char* const filename,
cl_int* const error = nullptr);
std::vector<unsigned char> UTILSCPP_EXPORT
read_binary_file(const char* const filename, cl_int* const error = nullptr);
Program::Binaries UTILSCPP_EXPORT read_binary_files(
const std::vector<cl::Device>& devices,
const char* const program_file_name, cl_int* const error = nullptr);
cl_int UTILSCPP_EXPORT
write_binaries(const cl::Program::Binaries& binaries,
const std::vector<cl::Device>& devices,
const char* const program_file_name);
std::string UTILSCPP_EXPORT
executable_folder(cl_int* const error = nullptr);
std::string UTILSCPP_EXPORT read_exe_relative_text_file(
const char* const filename, cl_int* const error = nullptr);
std::vector<unsigned char> UTILSCPP_EXPORT read_exe_relative_binary_file(
const char* const filename, cl_int* const error = nullptr);
}
}