1 Star 0 Fork 0

gaozhenyan / learn_c_opencl

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
host_framework.h 637 Bytes
一键复制 编辑 原始数据 按行查看 历史
gaozhenyan 提交于 2018-05-23 18:23 . Initial commit
#ifndef HOST_FRAMEWORK_H
#define HOST_FRAMEWORK_H
#define CL_TARGET_OPENCL_VERSION 120
#ifdef MAC
#include <OpenCL/cl.h>
#else
#include <CL/cl.h>
#endif
#define CL_HOST_NUM_PLATFORM_MAX 10
#define CL_HOST_NUM_DEVICE_MAX 10
typedef struct cl_host_device_s { cl_device_id id; } cl_host_device_t;
typedef struct cl_host_platform_s {
cl_platform_id id;
cl_host_device_t device;
cl_context context;
} cl_host_platform_t;
typedef struct cl_host_ctx_s {
cl_host_platform_t platform;
cl_command_queue cmd_queue;
cl_program program;
cl_kernel kernel;
void *so_handle;
void *data;
} cl_host_ctx_t;
#endif
C
1
https://gitee.com/gaozhenyan/learn_c_opencl.git
git@gitee.com:gaozhenyan/learn_c_opencl.git
gaozhenyan
learn_c_opencl
learn_c_opencl
master

搜索帮助