Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
12 years ago

OPENCL Sample execution issue

Hi I get the following error when I try executing the vectorAdd opencl sdk sample executable.

$ ./vectorAdd_host

FAILED to read auto-discovery string at byte 1: Expected version is 11, found 4

Failed clGetDeviceIDs.

Error code: -1

What does this signify ?

How should I resolve it?

Thanks

7 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Have you flashed your board with an .aocx image from the current release you are using? (followed by cold reboot)

    Have you properly installed the PCIe driver?

    Have you built a host executable using the proper libraries from the current release you are using?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi

    I have installed the PCIe driver. This I have confirmed by using the lspci command in linux.

    I did build the host executable using the make.linux file.

    I tried flashing the board with the aocx image using the aocl flash command. But I get following error

    aocl flash

    --------------------------------------------------------------------

    No board flash routine supplied.

    Please consult your board manufacturer's documentation or support

    team for information on how to modify the default FPGA image.

    --------------------------------------------------------------------

    I am using the Bitware board. I think this should give the idea of the issue.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    aocl flash requires the USB-Blaster driver to load the hardware configuration file into the flash memory of the FPGA.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Bittware has their own tools for configuring flash memory. Please contact your Bittware representative for assistance.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi all

    Thanks for your help.

    I am actually using the board remotely.

    I have confirmed that the board that I am accessing is a Nallatech board.

    I thought that I was using the bitware board since the device code obtained as a consequence of lspci command was e385, which the getting started documentation on OpenCL indicates to be a Bitware device code.

    The output of lspci is as follows:

    $ lspci | grep Altera

    03:00.0 Unassigned class [ff00]: Altera Corporation Device e385 (rev 01)

    How should I interpret the result of the above lspci command ?