摘要: 1:程序 1)从上下文中创建程序 cl_program clCreateProgramWithSource( cl_context context, //上下文 cl_uint count, //文本个数 const char**strings, //程序文本 const size_t *lengt 阅读全文
posted @ 2020-01-08 21:55 糖糖_彭 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 1:平台 1)获取平台id cl_int clGetPlatformIDs( cl_uint num_entries, //想要获取的平台数 cl_platform_id * flatformids, //获取到设备会保存在该指针中 cl_uint *platforms //环境中存在的平台数量 ) 阅读全文
posted @ 2020-01-08 21:16 糖糖_彭 阅读(558) 评论(0) 推荐(0) 编辑