Altera_Forum
Honored Contributor
11 years agoOpenCL diagnose not working
Hi,
We have just started working with the Bittware's S5-PCIe-HQ board and there is a problem when using OpenCL. We have checked the forum but so far we haven't seen a problem like this. Just a little background: the system is configured with CentOS 64bit, Quartus Subscription Edition and the LM_LICENSE_FILE environment variable was added to the .bashrc file. With Quartus, a .rbf file (with a basic VHDL program to control the LEDs) can be generated and using Bittworks Toolkit (bwconfig), the file can be loaded as long as the USB cable is connected. Bwconfig does not detect the card through the PCIe because is brand new. Regarding OpenCL, after following the instructions on the Altera SDK for OpenCL Getting Started Guide and running the aocl install on terminal, this is what comes up:aocl install: Running install from /shared/altera/apbpp_v14.0/linux64/libexec
Using kernel source files from /usr/src/kernels/2.6.32-431.23.3.el6.x86_64
make: Entering directory `/usr/src/kernels/2.6.32-431.23.3.el6.x86_64'
CC /tmp/opencl_driver_PfH8ac/aclpci_queue.o
CC /tmp/opencl_driver_PfH8ac/aclpci.o
CC /tmp/opencl_driver_PfH8ac/aclpci_fileio.o
CC /tmp/opencl_driver_PfH8ac/aclpci_dma.o
CC /tmp/opencl_driver_PfH8ac/aclpci_cvp.o
CC /tmp/opencl_driver_PfH8ac/aclpci_cmd.o
LD /tmp/opencl_driver_PfH8ac/aclpci_drv.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/opencl_driver_PfH8ac/aclpci_drv.mod.o
LD /tmp/opencl_driver_PfH8ac/aclpci_drv.ko.unsigned
NO SIGN /tmp/opencl_driver_PfH8ac/aclpci_drv.ko
After that, when running aocl diagnose, it shows this: aocl diagnose: Running diagnostic from /shared/altera/apbpp_v14.0/linux64/libexec
Verified that the kernel mode driver is installed on the host machine.
Using board package from vendor: BittWare Inc
Querying information for all supported devices that are installed on the host machine ...
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
As the board works with .rbf files and is even detected using lspci, this could be related to suggestion number 4. Based on this, a few examples codes were downloaded (hello_world_d5.zip, dma_master.zip, pcie_ddr3_dma.zip). Regarding hello_world, when trying to compile it, an error shows up: Error: aoc: Can't find a valid license for the Altera SDK for OpenCL
With the other two examples, the rbf file is generated properly in Quartus using the instructions in the readme of the pcie_ddr3_dma but when running dma_master, this is what comes up: pci_cfg
irq pin: 0
irq line: 0
Segmentation fault (core dumped)
As Quartus works fine with the license file and there is even a line in it for OpenCL, doesn't look like the license file could be the problem but we don't know if we are missing something. We have been trying different steps but non of them seem to work. The problem right now is that we are not sure how to proceed with this, to make OpenCL work on the card. Regards, Carlos