Article ID: 000073930 Content Type: Troubleshooting Last Reviewed: 12/16/2019

Why does fpgaOpen() API fail with error message “resource busy” when it is called explicitly in a OpenCL host code?

Environment

  • Intel® Quartus® Prime Pro Edition
  • Intel® FPGA SDK for OpenCL™ Pro Edition
  • BUILT IN - ARTICLE INTRO SECOND COMPONENT
    Description

    Due to the limitation that OpenCL MMD doesn't support other driver level applications to be built on top of it, you will see the error “resource
    busy” when you instance custom IP in OpenCL BSP design and would like to access it using fpgaOpen() API in OpenCL host code.

    Resolution

    The OpenCL MMD full code will be Open Sourced with IOFS so that customers can make the modification based on their needs. To work around this problem, you can change the fpgaOpen() code located in ccip_mmd_device.cpp as follows:

    from original one:

    fpgaOpen(afc_token, &afc_handle,0); 

    change to:

    fpgaOpen(afc_token, &afc_handle, FPGA_OPEN_SHARED); 

    Related Products

    This article applies to 1 products

    Intel® Programmable Devices