Forum Discussion
OpenCL on FPGA Not able to generate hardware for matrix_mult.cl
Hello everyone,
I am trying to compile a very basic matrx_mult kernel (also same error occurs for hello_world) for a nallatech 385a board. However, always I am getting the following error:aoc -v -board=p385a_sch_ax115 matrix_mult.cl
aoc: Environment checks are completed successfully.
aoc: If necessary for the compile, your BAK files will be cached here: /var/tmp/aocl/
You are now compiling the full flow!!
aoc: Selected target board p385a_sch_ax115
aoc: Running OpenCL parser....
aoc: OpenCL parser completed successfully.
aoc: Optimizing and doing static analysis of code...
aoc: Linking with IP library ...
Checking if memory usage is larger than 100%
Compiler Warning: Vectorized kernel contains loads/stores that cannot be vectorized. This might reduce performance.
aoc: First stage compilation completed successfully.
Compiling for FPGA. This process may take a long time, please be patient.
Error (23031): Evaluation of Tcl script import_compile.tcl unsuccessful
Error: Quartus Prime Compiler Database Interface was unsuccessful. 1 error, 0 warnings
Error: Compiler Error, not able to generate hardware
This is the output of the quartus_sh_compile.log: nternal Error: Sub-system: DCALC, File: /quartus/ddb/dcalc/dcalc_bcm_modules_cache.cpp, Line: 110
Could not load pdb file - /home/opt/intelFPGA_pro/17.1/quartus/common/devinfo/20nm/ddb_nightfury_cc_dcm_h-ss-1p25-100-hs-n_model aoc verion: aoc -version
Intel(R) FPGA SDK for OpenCL(TM), 64-Bit Offline Compiler
Version 17.1.0 Build 240
Copyright (C) 2017 Intel Corporation
Quartus Prime Pro version:
Quartus Prime Analysis & Synthesis
Version 17.1.0 Build 240 10/25/2017 SJ Pro Edition
Copyright (C) 2017 Intel Corporation. All rights reserved.
Quartus Prime Compiler Database Interface
Version 17.1.0 Build 240 10/25/2017 SJ Pro Edition
Copyright (C) 2017 Intel Corporation. All rights reserved.
aocl version: aocl 17.1.0.240 (Intel(R) FPGA SDK for OpenCL(TM), Version 17.1.0 Build 240, Copyright (C) 2017 Intel Corporation) Also, I got a licence for the nallatech BSP kai the Quartus Prime Pro, both loaded on my system. I used the LM_LICENSE_FILE variable and trough the Quartus Prime pro to load the .dat licence file. If you have any suggestions regarding this issue, it would be much appreciated. Thank you in advance.21 Replies
- Altera_Forum
Honored Contributor
Your log looks like a crash in the fitter. Are you using the correct version of Nallatech's BSP (i.e. 17.1.0)? Have you successfully compiled any other kernels? Do you have enough memory on your machine? Compiling kernels for Arria 10 could require up to 48 GB of memory.
- Altera_Forum
Honored Contributor
Hello,
I am using the latest BSP version from nallatech sourced from the nalla_aocl_bsp_q17_R001.005.0004.iso. No, this is my first attempt for compiling and downloading a kernel to the board. Also, the machine that I am currently compiling has 64GB of RAM, an Intel Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz and 1TB SSD drive. - Altera_Forum
Honored Contributor
That is the correct BSP version, so it should work. 64 GB memory should also be enough for one compilation. Try another kernel, maybe Altera's hello_world or vector_add example. If both failed with the same error, I recommend reinstalling Quartus and the BSP because something might have gotten corrupted during the installation.
- Altera_Forum
Honored Contributor
I am getting the same error for any kernel that I am trying to compile.
Also, I tried to use the pre-compiled .aosx files from the examples: However, I got the following output and everytime at the last stage the whole host machine reboots. ./bin/host Initializing OpenCL Platform: Intel(R) FPGA SDK for OpenCL(TM) Using 1 device(s) p385a_sch_ax115 : nalla_pcie (aclnalla_pcie0) Using AOCX: vector_add.aocx Reprogramming device [0] with handle 1 MMD INFO : [aclnalla_pcie0] Reprogramming device through Flash with RBF file... - Altera_Forum
Honored Contributor
The compilation crash and the machine crash during FPGA reprogramming are two different things. Since you encounter the compilation crash also for other kernels, I recommend doing a clean install of Quartus and the BSP and see what happens. Also make sure you are using a supported operating system. If the problem still persisted, I recommend contacting Nallatech's support.
Machine crashes during FPGA reconfiguration on Arria 10 are not rare; I also experienced it myself multiple times, which eventually forced me to switch to JTAG-based programming. Try "export ACL_PCIE_USE_JTAG_PROGRAMMING=1" before running the kernel and see if that allows you to bypass the crash. - Altera_Forum
Honored Contributor
Hello,
Thank you for the reply. I managed to bypass the machine crashing by using the JTAG instead, so I am able to flash through the JTAG successfully. However, the compilation crash still persists even after a clean installation. Is there any possibility to be a licensing issue even without getting a licence related error ? - Altera_Forum
Honored Contributor
--- Quote Start --- However, the compilation crash still persists even after a clean installation. Is there any possibility to be a licensing issue even without getting a licence related error ? --- Quote End --- I don't think so. Without a valid license, you will not even get past the initial OpenCL to HDL conversion step, let alone fitting and routing. - Altera_Forum
Honored Contributor
What operating system are you using?
- Altera_Forum
Honored Contributor
Centos 7.4
- Altera_Forum
Honored Contributor
Is it possible you're running out of hard drive space during the build? How much space is available on the disk where you're building?