Forum Discussion
Hi,
I tried to post a reply yesterday, but today I see it isn't there. Today the link mentioned above https://supporttickets.intel.com does not work.
Thank you,
Peter BUSS
Here is my prepared reply from yesterday.
Should mention, that visual studio 2019 was used. Visual Studio 2022 was after the first attempt installed along with VS 2019, but the nmake failed to work, showing that only vs2019 was there but not vs 2022. So I used vs2019 for the excercises. I ran oneAPI install repare to get vs2022 to work with oneAPI.
Exercise 1 worked fine. That is where the first problem occured.
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.
Caught a synchronous SYCL exception: Native API failed. Native API returns: -999 (Unknown PI error) -999 (Unknown PI error)
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_emu
Microsoft (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.obj
To 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-8C32
Directory 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 free
D:\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 correctly
D:\Documents\FPGA\altera\oneAPIWShop\SHD23_2\Learn\SYCL_HLS\Lab\Features\Interfaces\Ex2\build>