Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17254 Discussions

OPENCL Sample execution issue

Altera_Forum
Honored Contributor II
1,467 Views

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
0 Kudos
7 Replies
Altera_Forum
Honored Contributor II
720 Views

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?
0 Kudos
Altera_Forum
Honored Contributor II
720 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
720 Views

Hi, 

 

What version of aocl are you using? Did you install the BittWare board development software from the BittWare Developer Site (https://developer.bittware.com/)? What's the output of "aocl diagnostic"?
0 Kudos
Altera_Forum
Honored Contributor II
720 Views

Hi,  

 

aocl flash requires the USB-Blaster driver to load the hardware configuration file into the flash memory of the FPGA.
0 Kudos
Altera_Forum
Honored Contributor II
720 Views

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

0 Kudos
Altera_Forum
Honored Contributor II
720 Views

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 ?
0 Kudos
Altera_Forum
Honored Contributor II
720 Views

Hi, 

 

Your flash needs to be reprogrammed with an OpenCL design. The Device ID e385 corresponds to a Nallatech test design and NOT an Altera OpenCL design (device ID is AB00). 

 

Please read: http://www.alteraforum.com/forum/showthread.php?t=41749 

 

Thanks
0 Kudos
Reply