Forum Discussion
Altera_Forum
Honored Contributor
8 years agoHi HRZ,
Thank you so much for your quick reply! I ignored the driver from Teraric and installed the driver from OpenCL SDK by "aocl install". I can install the driver successfully: [root@localhost vector_add]# lsmod Module Size Used by aclpci_de5a_net_i2_drv 36672 0 But while I run the "aocl diagnose", there is still an error: [root@localhost vector_add]# aocl diagnose aocl diagnose: Running diagnose from /root/intelFPGA_pro/16.1/hld/board/de5a_net_i2/linux64/libexec aocl diagnose: failed 32 times. First error below: Vendor: Terasic MMD INFO : [aclde5a_net_i20] PCIe-to-fabric read test failed, read 0xffffffff after 1 attempts Phys Dev Name Status Information aclde5a_net_i20Failed Board name not available. Failed initial tests, so not working as expected. Please try again after reprogramming the device. Found no active device installed on the host machine. Please make sure to: 1. Set the environment variable AOCL_BOARD_PACKAGE_ROOT to the correct board package. 2. Install the driver from the selected board package. 3. Properly install the device in the host machine. 4. Configure the device with a supported OpenCL design. 5. Reboot the machine if the PCI Express link failed. DIAGNOSTIC_FAILED Used lspci to check device and only saw: [root@localhost vector_add]# lspci 01:00.0 Processing accelerators: Altera Corporation Device 2494 (rev ff) The problem now is that, while I program the helloworld example as the manual into the FPGA, it shows that: [root@localhost bin]# aocl program aclde5a_net_i20 hello_world.aocx aocl program: Running program from /root/intelFPGA_pro/16.1/hld/board/de5a_net_i2/linux64/libexec MMD INFO : [aclde5a_net_i20] PCIe-to-fabric read test failed, read 0xffffffff after 1 attempts Failed clGetDeviceIDs. Error code: -1 Failed clGetDeviceIDs. Error code: -30 Failed to find requested device aclde5a_net_i20 from 0 devices aocl program: Program failed. I am still not sure whether it's the problem of the driver or not. Do you have any idea/solution for this issue? Thank you so much, HRZ. Jiawen --- Quote Start --- You are not supposed to compile and load the driver manually. Just make sure AOCL_BOARD_PACKAGE_ROOT points to your BSP and run "aocl install". That will compile and load the PCI-E driver automatically. These steps are described in Terasic's document. --- Quote End ---