Forum Discussion
Hi,
I had try to recompile, but i did not see the error.
Below show the process I run the command:
uxxxxx@login-2:~$ ls
BaseKit-code-samples
build_fpga_hw.sh build_fpga_hw.sh.o502769 new run_fpga_hw.sh.e502770 tmp vector
uxxxxx@login-2:~$ qsub -I -l nodes=1:fpga:ppn=2 -d .
qsub: waiting for job 508727.v-qsvr-1.aidevcloud to start
qsub: job 508727.v-qsvr-1.aidevcloud ready
########################################################################
# Date: Wed Feb 19 17:38:13 PST 2020
# Job ID: 508727.v-qsvr-1.aidevcloud
# User: u3xxxxx
# Resources: neednodes=1:fpga:ppn=2,nodes=1:fpga:ppn=2,walltime=06:00:00
########################################################################
uxxxxx@s001-n081:~$ cd BaseKit-code-samples/DPC++Compiler/vector-add/
uxxxxx@s001-n081:~/BaseKit-code-samples/DPC++Compiler/vector-add$ qsub -I -l nodes=1:fpga:ppn=2 -d . build_fpga_hw.sh
qsub: waiting for job 508728.v-qsvr-1.aidevcloud to start
qsub: job 508728.v-qsvr-1.aidevcloud ready
########################################################################
# Date: Wed Feb 19 17:38:49 PST 2020
# Job ID: 508728.v-qsvr-1.aidevcloud
# User: uxxxxx
# Resources: neednodes=1:fpga:ppn=2,nodes=1:fpga:ppn=2,walltime=06:00:00
########################################################################
uxxxxx@s001-n082:~/BaseKit-code-samples/DPC++Compiler/vector-add$ qsub -I -l nodes=1:fpga:ppn=2 -d . run_fpga_hw.sh
qsub: waiting for job 508749.v-qsvr-1.aidevcloud to start
qsub: job 508749.v-qsvr-1.aidevcloud ready
########################################################################
# Date: Wed Feb 19 17:41:10 PST 2020
# Job ID: 508749.v-qsvr-1.aidevcloud
# User: uxxxxx
# Resources: neednodes=1:fpga:ppn=2,nodes=1:fpga:ppn=2,walltime=06:00:00
########################################################################
uxxxxx@s001-n083:~/BaseKit-code-samples/DPC++Compiler/vector-add$
For this message show is due to the command not correct in option:
u34356@login-2:~/oneAPI/DPC++Compiler/vector-add$ qsub -l nodes=1:fpga:ppn=2 -d . build_fpga_hw.sh
506997.v-qsvr-1.aidevcloud
Then I try the command " make hw -f Makefile.fpga", which given the the same error as yours.
dpcpp -fintelfpga -c src/vector-add.cpp -o a.o -DFPGA
dpcpp -fintelfpga a.o -o vector-add.fpga -Xshardware
aoc: Quartus is not on the path!
aoc: Is it installed on your system and quartus bin directory added to PATH environment variable?
/home/uxxxxx/tmp/vector-add-c659c0.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)
Makefile.fpga:17: recipe for target 'vector-add.fpga' failed
make: *** [vector-add.fpga] Error 1
For this error, I would report to the developer.
Thanks