Forum Discussion

Titanameda's avatar
Titanameda
Icon for New Contributor rankNew Contributor
6 years ago

RTL opencl Run time errors

Hi.

Compiling RTL opencl example1,

1.compiling host code (via make file) is completed

2. while Running (host executable :host ) get the following error

Querying device for info:

========================

CL_DEVICE_NAME =

CL_DEVICE_VENDOR =

CL_DEVICE_VENDOR_ID = 0

CL_DRIVER_VERSION =

CL_DEVICE_ADDRESS_BITS = 64

CL_DEVICE_AVAILABLE = true

CL_DEVICE_ENDIAN_LITTLE = true

CL_DEVICE_GLOBAL_MEM_CACHE_SIZE = 32768

CL_DEVICE_GLOBAL_MEM_CACHELINE_SIZE = 0

CL_DEVICE_GLOBAL_MEM_SIZE = 0

CL_DEVICE_IMAGE_SUPPORT = false

CL_DEVICE_LOCAL_MEM_SIZE = 0

CL_DEVICE_MAX_CLOCK_FREQUENCY = 1000

CL_DEVICE_MAX_COMPUTE_UNITS = 1

CL_DEVICE_MAX_CONSTANT_ARGS = 8

CL_DEVICE_MAX_CONSTANT_BUFFER_SIZE = 8

CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS = 3

CL_DEVICE_MEM_BASE_ADDR_ALIGN = 8192

CL_DEVICE_MIN_DATA_TYPE_ALIGN_SIZE = 1024

CL_DEVICE_PREFERRED_VECTOR_WIDTH_CHAR = 4

CL_DEVICE_PREFERRED_VECTOR_WIDTH_SHORT = 2

CL_DEVICE_PREFERRED_VECTOR_WIDTH_INT = 1

CL_DEVICE_PREFERRED_VECTOR_WIDTH_LONG = 1

CL_DEVICE_PREFERRED_VECTOR_WIDTH_FLOAT = 1

CL_DEVICE_PREFERRED_VECTOR_WIDTH_DOUBLE = 0

Command queue out of order? = false

Command queue profiling enabled? = true

Context callback: Could not open devices

ERROR: CL_DEVICE_NOT_AVAILABLE

Location: host/src/main.cpp:226

Failed to create context

What is the reason that device is not found?

Thank you!

17 Replies

  • MEIYAN_L_Intel's avatar
    MEIYAN_L_Intel
    Icon for Frequent Contributor rankFrequent Contributor

    Hi,

    From the path provided as comment above, it seem like the path is not correct as compare with https://docs.openvinotoolkit.org/latest/_docs_install_guides_VisionAcceleratorFPGA_Configure_2019R3.html in step 11.

    I would like to suggest to do a clear uninstall for the BSP of both device and OpenVINO toolkit.

    Then do a install of OpenVINO toolkit for Mustang-F100-A10 based on the link below:

    https://docs.openvinotoolkit.org/latest/_docs_install_guides_VisionAcceleratorFPGA_Configure_2019R3.html

    After you have successful run and compile sample application for Mustang-F100-A10 device, then only installed another a10_ref BSP in the same path: /opt/altera/aocl-pro-rte/aclrte-linux64/board

    Thanks

  • Titanameda's avatar
    Titanameda
    Icon for New Contributor rankNew Contributor

    ok, As of now i need to emulate alone , so my understanding is I do not need the board, but for mustang it seems u need it . (even for BSP installation ), (I do not have the appropriate USB Blaster as of now )

    so , now i would like to emulate for a_10_ref , for this what is the procedure ? the steps, can i use the opencl installation that are installed along with openvino or should i download a separate Opencl RTE

  • MEIYAN_L_Intel's avatar
    MEIYAN_L_Intel
    Icon for Frequent Contributor rankFrequent Contributor

    Hi,

    I am sorry for misunderstanding the information about OpenVINO toolkit. I had check internally about the information about OpenVINO toolkit.

    Firstly, the OpenVINO toolkit cannot run emulation. To run emulation, you have to download and follow the instruction as the link below: https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/hb/opencl-sdk/aocl_getting_started.pdf

    Secondly, the BSP for Mustang-F100-A10 is a part of installation package in OpenVINO toolkit. Hence you can take the Mustang-F100-A10 BSP from OpenVINO toolkit and place it into the OpenCL SDK software installation path ie: <installation_path_opencl>\board to used it as BSP.

    Please note that to set all the environment variable in correct path.

    Also, you can look into the link below to know the OS supported for each software version:

    https://fpgasoftware.intel.com/requirements/19.3/

    Please note that the software in Pro Edition and Standard Edition is required paid license.

    Thanks