33 #define CL_HPP_CL_1_2_DEFAULT_BUILD 34 #define CL_HPP_TARGET_OPENCL_VERSION 120 35 #define CL_HPP_MINIMUM_OPENCL_VERSION 120 36 #define CL_HPP_ENABLE_PROGRAM_CONSTRUCTION_FROM_ARRAY_COMPATIBILITY 1 58 if (posix_memalign(&ptr,4096,num*
sizeof(T)))
59 throw std::bad_alloc();
60 return reinterpret_cast<T*
>(ptr);
70 std::vector<cl::Device>
get_devices(
const std::string& vendor_name);
103 std::string
find_binary_file(
const std::string& _device_name,
const std::string& xclbin_name);
std::string find_binary_file(const std::string &_device_name, const std::string &xclbin_name)
void deallocate(T *p, std::size_t num)
std::vector< cl::Device > get_xil_devices()
std::vector< cl::Device > get_devices(const std::string &vendor_name)
cl::Program::Binaries import_binary_file(std::string xclbin_file_name)
T * allocate(std::size_t num)