Forum Discussion
Hi peterbuss,
I think will need to refer to the simulation document on the environment setup requirements:
Thanks.
Regards,
Aik Eu
- peterbuss1 year ago
New Contributor
I tried this and I received the same error. I then upgraded to the newest version of Quartus Prime Pro (24.1) and All the steps in exercise 1 could be completed successfully. I don't remember which version of Quartus I had previously installed. I of course also installed the newest version of Questa Starter.
Excercise 2 however failed down the line. When running vector_add.fpga_emu.exe
I got
Caught a synchronous SYCL exception: Native API failed. Native API returns: -999 (Unknown PI error) -999 (Unknown PI error)
Here's my log for step A
---------------------------
oneAPI Workshop May 2024 - Exercise 2
All steps were attemped and failed with the same error like the one from step A below. Other steps attempted were B, C, D, E.
Excercise 3 was not attempted.
Step A: Register-Mapped Invocation Interface and Memory_Mapped Data Interface
____ 1. Go to the sample directory in the command window
a) H:\LID\Features\Interfaces\Ex2
____ 2. Inspect the vector_add.cpp code.
a) Go to Visual Studio Code
b) Navigate to the ..\Ex2\naive and open the file from the src folder
c) This sample demonstrates a kernel that uses a register-mapped invocation interface, and a single shared memory-mapped host data interface.
____ 3. Configure the build directory and make build files for the Naïve sample by running the following commands on the terminal
a) mkdir build
b) cd build
c) cmake -DFPGA_DEVICE=Arria10 .. -G “NMake Makefiles” -DTYPE=NAIVE
____ 4. Perform compilation for emulation and run the kernel on the emulator in the command window
a) nmake fpga_emu
b) vector_add.fpga_emu.exe -> fails - described below
c) The console should display Passed
____ 1. Generate optimization report and inspect report
a) nmake report
b) This compilation command if successful will
D:\Documents\FPGA\altera\oneAPIWShop\SHD23_2\Learn\SYCL_HLS\Lab\Features\Interfaces\Ex2\build>nmake fpga_emuMicrosoft (R) Program Maintenance Utility Version 14.29.30154.0
Copyright (C) Microsoft Corporation. All rights reserved.[ 33%] To compile manually:
I:/Software/Intel/oneAPI/compiler/latest/bin/icx-cl.exe -I../../../../../include -fsycl -fintelfpga -Wall /EHsc -Qactypes -DFPGA_EMULATOR -c ../naive/src/vector_add.cpp -o CMakeFiles/fpga_emu.dir/naive/src/vector_add.cpp.objTo link manually:
I:/Software/Intel/oneAPI/compiler/latest/bin/icx-cl.exe -fsycl -fintelfpga -Qactypes -o vector_add.fpga_emu.exe CMakeFiles/fpga_emu.dir/naive/src/vector_add.cpp.obj
[ 33%] Built target displayEmulationCompileCommands
Scanning dependencies of target fpga_emu
[ 66%] Building CXX object CMakeFiles/fpga_emu.dir/naive/src/vector_add.cpp.obj
Intel(R) oneAPI DPC++/C++ Compiler for applications running on Intel(R) 64, Version 2024.1.0 Build 20240308
Copyright (C) 1985-2024 Intel Corporation. All rights reserved.[100%] Linking CXX executable vector_add.fpga_emu.exe
Intel(R) oneAPI DPC++/C++ Compiler for applications running on Intel(R) 64, Version 2024.1.0 Build 20240308
Copyright (C) 1985-2024 Intel Corporation. All rights reserved.[100%] Built target fpga_emu
D:\Documents\FPGA\altera\oneAPIWShop\SHD23_2\Learn\SYCL_HLS\Lab\Features\Interfaces\Ex2\build>
D:\Documents\FPGA\altera\oneAPIWShop\SHD23_2\Learn\SYCL_HLS\Lab\Features\Interfaces\Ex2\build>dir
Volume in drive D has no label.
Volume Serial Number is 1220-8C32Directory of D:\Documents\FPGA\altera\oneAPIWShop\SHD23_2\Learn\SYCL_HLS\Lab\Features\Interfaces\Ex2\build
19/05/2024 15:41 <DIR> .
19/05/2024 15:41 <DIR> ..
19/05/2024 15:40 12.601 CMakeCache.txt
19/05/2024 15:41 <DIR> CMakeFiles
19/05/2024 15:40 1.711 cmake_install.cmake
19/05/2024 15:40 11.732 Makefile
19/05/2024 15:41 178.176 vector_add.fpga_emu.exe
19/05/2024 15:41 946.856 vector_add.fpga_emu.ilk
19/05/2024 15:41 1.298.432 vector_add.fpga_emu.pdb
6 File(s) 2.449.508 bytes
3 Dir(s) 290.034.143.232 bytes freeD:\Documents\FPGA\altera\oneAPIWShop\SHD23_2\Learn\SYCL_HLS\Lab\Features\Interfaces\Ex2\build>vector_add.fpga_emu.exe
Caught a synchronous SYCL exception: Native API failed. Native API returns: -999 (Unknown PI error) -999 (Unknown PI error)
If you are targeting an FPGA hardware, ensure that your system is plugged to an FPGA board that is set up correctlyD:\Documents\FPGA\altera\oneAPIWShop\SHD23_2\Learn\SYCL_HLS\Lab\Features\Interfaces\Ex2\build>