最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

error handling - What is the guaranteed relation of the per-binary and overall return status of clCreateProgramWithBinaries? - S

programmeradmin3浏览0评论

The OpenCL API has the following function:

cl_program clCreateProgramWithBinary(
    cl_context context,
    cl_uint num_devices,
    const cl_device_id* device_list,
    const size_t* lengths,
    const unsigned char** binaries,
    cl_int* binary_status,
    cl_int* errcode_ret);

The two last parameters are out-parameters, used for returning status information: The last returns the overall status, while the other is actually an array of length num_devices, every one of which corresponds to the status of loading the corresponding binary from the binaries array.

My question is how the overall and individual status values relate.

  • Can the overall status be CL_SUCCESS if some of the individual binaries failed to load? Or is that still considered a success?
  • Can the overall status be some failure, even when all individual binaries status values are CL_SUCCESS?
  • How should the general status variable reflect various errors that the loading of individual kernels encounters?

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论