Forum Discussion
Hi,
I found that you might be not using the correct node.
I had check the information as below:
For node s001- n081 to n92
properties = fpga_runtime,xeon,gold6128,skl,ram192gb,net1gbe,fpga,arria10
For node s001-n145 to n156
properties = fpga_compile,xeon,plat8153,skl,ram384gb,net1gbe
It shows that s001-n145 to 156 only for fpga compile, while s001-n81 to n092 have fpga hardware which is shown in properties.
I had the run the hardware compilation with steps below, it is successfully to compile in hardware.
Could you try the steps 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_hw.sh
#!/bin/bash
source /opt/intel/inteloneapi/setvars.sh
make hw -f Makefile.fpga
6. vi run_fpga_hw.sh
#!/bin/bash
source /opt/intel/inteloneapi/setvars.sh
make run_hw -f Makefile.fpga
7. qsub -I -l nodes=1:fpga:ppn=2 -d . build_fpga_hw.sh
8. qsub -I -l nodes=1:fpga:ppn=2 -d . run_fpga_hw.sh
Thanks
Hi,
Thank you for your response!
I don't remember seeing the fpga property before, just fpga_compile for nodes with Quartus etc. and fpga_runtime for nodes with FPGA cards, but anyway...
u34356@login-2:~/oneAPI/DPC++Compiler/vector-add$ pbsnodes | grep properties | sort | uniq
properties = experimental,xeon,clx,ram192gb,net1gbe
properties = fpga_compile,xeon,plat8153,skl,ram384gb,net1gbe
properties = fpga_runtime,xeon,gold6128,skl,ram192gb,net1gbe,fpga,arria10
properties = gen9,xeon,e-2176g,cfl,gpu,ram64gb,net1gbe,6cores,eus0024
properties = jupyter,batch,xeon,gold6128,skl,ram192gb,net1gbeI was unable to reproduce your steps on Devcloud, have you done them recently? I tried with the three different properties (removing the -I option that is incorrect when giving a script) and I always get the same error (aoc: Quartus is not on the path!):
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
u34356@login-2:~/oneAPI/DPC++Compiler/vector-add$ qsub -l nodes=1:fpga_compile:ppn=2 -d . build_fpga_hw.sh
506998.v-qsvr-1.aidevcloud
u34356@login-2:~/oneAPI/DPC++Compiler/vector-add$ qsub -l nodes=1:fpga_runtime:ppn=2 -d . build_fpga_hw.sh
506999.v-qsvr-1.aidevcloud
u34356@login-2:~/oneAPI/DPC++Compiler/vector-add$ less build_fpga_hw.sh.e*
aoc: Quartus is not on the path!
aoc: Is it installed on your system and quartus bin directory added to PATH environment variable?
/home/u34356/tmp/vector-add-63c373.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)
make: *** [vector-add.fpga] Error 1
/var/spool/torque/mom_priv/epilogue.parallel: line 12: /var/spool/torque/mom_priv/epilogue.d//95-nvdir.epilogue: Permission deniedI also tried to do it interactively with the -I option (note that the allocated nodes are in the intervals you mentioned), but I got the same error:
u34356@login-2:~/oneAPI/DPC++Compiler/vector-add$ qsub -I -l nodes=1:fpga_compile:ppn=2 -d .
qsub: waiting for job 507000.v-qsvr-1.aidevcloud to start
qsub: job 507000.v-qsvr-1.aidevcloud ready
########################################################################
# Date: Wed Feb 19 09:51:41 PST 2020
# Job ID: 507000.v-qsvr-1.aidevcloud
# User: u34356
# Resources: neednodes=1:fpga_compile:ppn=2,nodes=1:fpga_compile:ppn=2,walltime=06:00:00
########################################################################
u34356@s001-n148:~/oneAPI/DPC++Compiler/vector-add$ make hw -f Makefile.fpga
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/u34356/tmp/vector-add-0ff0ad.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
u34356@s001-n148:~/oneAPI/DPC++Compiler/vector-add$ logout
qsub: job 507000.v-qsvr-1.aidevcloud completed
u34356@login-2:~/oneAPI/DPC++Compiler/vector-add$ qsub -I -l nodes=1:fpga_runtime:ppn=2 -d .
qsub: waiting for job 507003.v-qsvr-1.aidevcloud to start
qsub: job 507003.v-qsvr-1.aidevcloud ready
########################################################################
# Date: Wed Feb 19 09:54:07 PST 2020
# Job ID: 507003.v-qsvr-1.aidevcloud
# User: u34356
# Resources: neednodes=1:fpga_runtime:ppn=2,nodes=1:fpga_runtime:ppn=2,walltime=06:00:00
########################################################################
u34356@s001-n081:~/oneAPI/DPC++Compiler/vector-add$ make hw -f Makefile.fpga
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/u34356/tmp/vector-add-4c2e41.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
u34356@s001-n081:~/oneAPI/DPC++Compiler/vector-add$ logoutUntil recently, I compiled several examples using the same scripts / parameters. Since I got the message about --force in the /opt/intel/inteloneapi/setvars.sh script I couldn't do it anymore.
I didn't find Quartus in any of these nodes, what should be the path?
Best regards,
Menotti