Forum Discussion

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

OpenCL SDK Upgrade

I just installed OpenCL SDK 13.1.162 . The 13.0sp1.234, which was installed first, still works but the 13.1.162 fails with "Failed clGetDeviceIDs" error message on running aocl diagnostic. Do I need to reprogram the FPGA's flash memory?

Thanks in advance for you help?

5 Replies

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

    I am trying to use OpenCL code with a Terasic DE5Net FPGA. The code compiles but the host program has errors, When I was trying to troubleshoot I went ahead and used command

    aocl diagnostic

    which returned the following error:

    aocl diagnostic: Running diagnostic from /home/aws4y/altera/13.1/hld/board/terasic/de5net/linux64/bin
    running diagnostic for : acl0
    FPGA is in user mode. Enabling bridges
    Using platform: Altera SDK for OpenCL
    Failed clGetDeviceIDs.
    Error code: -1
    aocl diagnostic: failed.
    

    I do not understand how clGetDeviceIDs fails, I don't think there is a problem with the board but maybe with the configuration. I am trying to use the PCI Express bus with the card is that incorrect? Could it be a configration issue with CentOS or the Altera OpenCL sdk?

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

    I would flash program a new 13.1 image onto the board and perform a full power cycle to ensure the board is configured with the new image from flash.

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

    Is there a way to flash via the PCIe bus, if not then is it safe to connect the USB cable while the card is plugged into the PCIe bus? Thanks again for your help.

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

    I don't have this board but judging by the product page it has a USB blaster interface that you just connect a mini/micro cable up to it. This should be independent of PCIe so I think it should be safe to connect. You will have to install the driver for the USB blaster assuming your workstation does not already have it installed, I'm guessing the kit came with instruction on how to do that. For development work I always leave my JTAG connected to my OpenCL board so that I don't need to open my machine any time I need to flash program the board.

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

    This option worked, and results in a passed report from 'aocl diagnostic' thanks a bunch BadOmen.

    -Aaron