Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
72 Views

Local OneAPI FPGA synthesis with Altera Cyclone 5

 

Hello, I am trying to run FPGA hardware synthesis locally on my own device but i ran into problem 

I get error message while trying to build Simple_Add with hw option : 

Error: Internal Compiler Error. BSP specified project name dcp, but dcp.qpf does not exist. 

 I am wondering if i should create such file or it is caused by wrong versions of software. 
    I am using Quartus Pro 19.3 and Intel OneApi release 2021.1-beta07.

My card is a DE10-Standard with Cyclone V. I am using the BSP provided by terasic.

Please, let me know if anyone can help me.

0 Kudos
2 Replies
Highlighted
66 Views

The command to list my boards works as expected:

eclipse-workspace/Simple_Add# aoc -list-board-packages
Installed board packages:
  No board support package installed.
Board packages shipped with Intel(R) FPGA SDK for OpenCL(TM):
  de10_standard: /opt/intel/inteloneapi/intelfpgadpcpp/2021.1-beta07/board/de10_standard
Board packages shipped with Intel(R) FPGA SDK for OpenCL(TM): (for report generation/emulation/runtime use only) :
  intel_s10sx_pac: /opt/intel/inteloneapi/compiler/2021.1-beta06/linux/lib/oclfpga/board/intel_s10sx_pac
  intel_a10gx_pac: /opt/intel/inteloneapi/compiler/2021.1-beta06/linux/lib/oclfpga/board/intel_a10gx_pac (default)

 

I tried to pass ¨-Xsboard=de10_standard¨ on my Makefile, but it did not work:

eclipse-workspace/Simple_Add# make hw -f Makefile.fpga
dpcpp -O2 -g -std=c++17 -v -fintelfpga a_buffers.o -o simple-add-buffers.fpga -Xshardware -Xsboard=de10_standard
Intel(R) oneAPI DPC++ Compiler 2021.1-beta06 (2020.4.0.0415)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/intel/inteloneapi/compiler/2021.1-beta06/linux/bin
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/9
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/9
Candidate multilib: .;@m64
Selected multilib: .;@m64
 "/opt/intel/inteloneapi/compiler/2021.1-beta06/linux/bin/clang-offload-bundler" -type=o -targets=host-x86_64-unknown-linux-gnu,sycl-spir64_fpga-unknown-unknown-sycldevice -inputs=a_buffers.o -outputs=/tmp/a_buffers-9dbb5b.o,/tmp/a_buffers-fb2c69.o -unbundle
 "/opt/intel/inteloneapi/compiler/2021.1-beta06/linux/bin/llvm-link" /tmp/a_buffers-fb2c69.o -o /tmp/a_buffers-454ac5.bc --suppress-warnings
 "/opt/intel/inteloneapi/compiler/2021.1-beta06/linux/bin/sycl-post-link" -ir-output-only -spec-const=default -o /tmp/a_buffers-cd73a5.bc /tmp/a_buffers-454ac5.bc
 "/opt/intel/inteloneapi/compiler/2021.1-beta06/linux/bin/llvm-spirv" -o /tmp/a_buffers-81001e.spv -spirv-max-version=1.1 -spirv-ext=+all /tmp/a_buffers-cd73a5.bc
 "/opt/intel/inteloneapi/compiler/2021.1-beta06/linux/bin/clang-offload-bundler" -type=o -targets=sycl-fpga_dep -inputs=a_buffers.o -outputs=/tmp/a_buffers-9ab450.d -unbundle
 "/opt/intel/inteloneapi/compiler/2021.1-beta06/linux/lib/oclfpga/bin/aoc" -o /tmp/a_buffers-f4c112.aocx /tmp/a_buffers-81001e.spv -sycl -dep-files=/tmp/a_buffers-9ab450.d -output-report-folder=simple-add-buffers.prj -hardware -board=de10_standard
Error: Cannot find the board package for board variant 'de10_standard'.
Please make sure the option -board points to a valid board variant 
within the available board packages.
You can use the option -list-board-packages to find out the available
board packages. Refer to "aoc -help" for more information.

clang++: error: fpga compiler command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile.fpga:33: simple-add-buffers.fpga] Error 1
0 Kudos
Highlighted
61 Views

If I send ¨-Xsboard=de10_standard_sharedonly¨ via Makefile, the response is a little better:

eclipse-workspace/Simple_Add# make hw -f Makefile.fpga
dpcpp -O2 -g -std=c++17 -v -fintelfpga a_buffers.o -o simple-add-buffers.fpga -Xshardware -Xsboard=de10_standard_sharedonly
Intel(R) oneAPI DPC++ Compiler 2021.1-beta06 (2020.4.0.0415)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/intel/inteloneapi/compiler/2021.1-beta06/linux/bin
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/9
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/9
Candidate multilib: .;@m64
Selected multilib: .;@m64
 "/opt/intel/inteloneapi/compiler/2021.1-beta06/linux/bin/clang-offload-bundler" -type=o -targets=host-x86_64-unknown-linux-gnu,sycl-spir64_fpga-unknown-unknown-sycldevice -inputs=a_buffers.o -outputs=/tmp/a_buffers-e1b85e.o,/tmp/a_buffers-b5f230.o -unbundle
 "/opt/intel/inteloneapi/compiler/2021.1-beta06/linux/bin/llvm-link" /tmp/a_buffers-b5f230.o -o /tmp/a_buffers-239549.bc --suppress-warnings
 "/opt/intel/inteloneapi/compiler/2021.1-beta06/linux/bin/sycl-post-link" -ir-output-only -spec-const=default -o /tmp/a_buffers-57ac22.bc /tmp/a_buffers-239549.bc
 "/opt/intel/inteloneapi/compiler/2021.1-beta06/linux/bin/llvm-spirv" -o /tmp/a_buffers-cdd4ec.spv -spirv-max-version=1.1 -spirv-ext=+all /tmp/a_buffers-57ac22.bc
 "/opt/intel/inteloneapi/compiler/2021.1-beta06/linux/bin/clang-offload-bundler" -type=o -targets=sycl-fpga_dep -inputs=a_buffers.o -outputs=/tmp/a_buffers-6ce143.d -unbundle
 "/opt/intel/inteloneapi/compiler/2021.1-beta06/linux/lib/oclfpga/bin/aoc" -o /tmp/a_buffers-0f8f1c.aocx /tmp/a_buffers-cdd4ec.spv -sycl -dep-files=/tmp/a_buffers-6ce143.d -output-report-folder=simple-add-buffers.prj -hardware -board=de10_standard_sharedonly
aoc: Use Quartus Prime Standard Edition for non-A10/S10/C10GX devices. Current Quartus Version is: 
Quartus Prime Shell
Version 19.4.0 Build 64 12/04/2019 SC Pro Edition
Copyright (C) 2019  Intel Corporation. All rights reserved.
clang++: error: fpga compiler command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile.fpga:33: simple-add-buffers.fpga] Error 1

 

The question now is: How can I install OneApi with Quartus Prime Standard instead of Pro ?

 

0 Kudos