oneAPI on DevCloud fails on building for FPGAs
Hi,
I have access to Intel DevCloud to try oneAPI. and I use `qsub -I` to open interactive terminal
I tried to make FPGA examples from BaseKit-code-samples , but `make fpga` shows an error
```
[ 50%] Linking CXX executable ../triangular_loop.fpga
aoc: Quartus is not on the path!
aoc: Is it installed on your system and quartus bin directory added to PATH environment variable?
/home/u34315/tmp/triangular_loop-a503a1.o: file not recognized: File truncated
clang++: error: fpga compiler command failed with exit code 1 (use -v to see invocation)
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
src/CMakeFiles/triangular_loop.fpga.dir/build.make:94: recipe for target 'triangular_loop.fpga' failed
make[3]: *** [triangular_loop.fpga] Error 1
CMakeFiles/Makefile2:321: recipe for target 'src/CMakeFiles/triangular_loop.fpga.dir/all' failed
make[2]: *** [src/CMakeFiles/triangular_loop.fpga.dir/all] Error 2
CMakeFiles/Makefile2:264: recipe for target 'src/CMakeFiles/fpga.dir/rule' failed
make[1]: *** [src/CMakeFiles/fpga.dir/rule] Error 2
Makefile:183: recipe for target 'fpga' failed
make: *** [fpga] Error 2
```
If I source
init_opencl.sh
from different pre-installed quartus version I get version incompatibility error.
Could you please tell me which script should I source exactly to be able to use installed PAC on the DevCloud?
Also `aocl diagnose all` shows this message:
```
--------------------------------------------------------------------
ICD System Diagnostics
--------------------------------------------------------------------
Using the following location for ICD installation:
/etc/OpenCL/vendors
Found 4 icd entry at that location:
/etc/OpenCL/vendors/Intel_FPGA_SSG_Emulator.icd
/etc/OpenCL/vendors/Altera.icd
/etc/OpenCL/vendors/intel-cpu.icd
/etc/OpenCL/vendors/intel-neo.icd
the following OpenCL libraries are referenced in the icd files:
libintelocl_emu.so
checking LD_LIBRARY_PATH for registered libraries:
libintelocl_emu.so was registered on the system at /opt/intel/inteloneapi/compiler/2021.1-beta03/linux/lib/oclfpga/host/linux64/lib
libalteracl.so was registered on the system at /opt/intel/inteloneapi/compiler/2021.1-beta03/linux/lib/oclfpga/host/linux64/lib
libintelocl.so was registered on the system at /opt/intel/inteloneapi/compiler/latest/linux/lib/x64
libigdrcl.so was registered on the system at /opt/intel/inteloneapi/compiler/latest/linux/lib/oclgpu
Using the following location for fcd installations:
/opt/Intel/OpenCLFPGA/oneAPI/Boards
ERROR: no FCD entry at that location. Without ICD and FCD, host executables must be linked directly to Intel FPGA runtime (libalteracl) and BSP MMD library instead of to the khronos ICD library (libOpenCL).
To use FCD, Please reinstall using aocl install
--------------------------------------------------------------------
ICD diagnostics FAILED
--------------------------------------------------------------------
--------------------------------------------------------------------
BSP Diagnostics
--------------------------------------------------------------------
/opt/intel/inteloneapi/compiler/2021.1-beta03/linux/lib/oclfpga/board/intel_a10gx_pac/linux64/libexec/diagnose: error while loading shared libraries: libopae-c.so.1: cannot open shared object file: No such file
```
It is my user ID in DevCloud : u34315@s001-n093
Hi,
I have try to run compile the with FPGA emulator and hardware with the command as below:
ssh decloud
git clone https://github.com/intel/BaseKit-code-samples.git
qsub -I -l nodes=1:fpga:ppn=2 -d .
cd BaseKit-code-samples/DPC++Compiler/vector-add/
vi build_fpga_emu.sh
#!/bin/bash
source /opt/intel/inteloneapi/setvars.sh
make fpga_emu -f Makefile.fpga
vi run_fpga_emu.sh
#!/bin/bash
source /opt/intel/inteloneapi/setvars.sh
make run_emu -f Makefile.fpga
vi build_fpga_hw.sh
#!/bin/bash
source /opt/intel/inteloneapi/setvars.sh
make hw -f Makefile.fpga
vi run_fpga_hw.sh
#!/bin/bash
source /opt/intel/inteloneapi/setvars.sh
make run_hw -f Makefile.fpga
qsub -I -l nodes=1:fpga:ppn=2 -d . build_fpga_emu.sh
qsub -I -l nodes=1:fpga:ppn=2 -d . run_fpga_emu.sh
qsub -I -l nodes=1:fpga:ppn=2 -d . build_fpga_hw.sh
qsub -I -l nodes=1:fpga:ppn=2 -d . run_fpga_hw.sh
I have saw the output is success by using command "cat".
I will check internally with the related information again.
Thanks