云计算与数据中心建设_-_2云计算中的并行数据处理讲义教材.ppt

云计算与数据中心建设_-_2云计算中的并行数据处理讲义教材.ppt

云计算与数据中心建设_-_2云计算中的并行数据处理讲义教材.ppt

Step2: Build Program, Select Kernel // create the program cl_program myprog = clCreateProgramWithSource ( myctx,1, (const char **)source, program_length, ciErrNum); // build the program ciErrNum = clBuildProgram( myprog, 0, NULL, NULL, NULL, NULL); //Use the “image_rotate” function as the kernel cl_kernel mykernel = clCreateKernel ( myprog , “image_rotate” , error_code) Query Platform Query Devices Command Queue Create Buffers Compile Program Compile Kernel Execute Kernel Set Arguments Platform Layer Runtime Layer Compiler Step3: Set Arguments, Enqueue Kernel

文档评论(0)

1亿VIP精品文档

相关文档