【发布时间】:2019-07-31 20:20:18
【问题描述】:
我正在尝试根据我在网上找到的示例编写一个 openCL 1.2 程序,但遇到了错误。库是否已更改为使用类似于 std::vector 的 std::exception?
下面的sn-p:
// Build the kernel
cl::Program program(context, sources);
try{
program.build({device});
} catch(cl::Error& e){
std::cerr << program.getBuildInfo<CL_PROGRAM_BUILD_LOG>(device) << std::endl;
throw e;
}
【问题讨论】: