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

OPENCL Sample execution issue

Altera_Forum
名誉分销商 II
1,481 次查看

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 项奖励
7 回复数
Altera_Forum
名誉分销商 II
734 次查看

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 项奖励
Altera_Forum
名誉分销商 II
734 次查看

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 项奖励
Altera_Forum
名誉分销商 II
734 次查看

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 项奖励
Altera_Forum
名誉分销商 II
734 次查看

Hi,  

 

aocl flash requires the USB-Blaster driver to load the hardware configuration file into the flash memory of the FPGA.
0 项奖励
Altera_Forum
名誉分销商 II
734 次查看

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

0 项奖励
Altera_Forum
名誉分销商 II
734 次查看

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 项奖励
Altera_Forum
名誉分销商 II
734 次查看

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 项奖励
回复