- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi support team
When I used qsub -l nodes=1:fpga_runtime:stratix10:ppn=2 -d . run_fpga_hw.sh command to run my code on devcloud stratix10 fpga hw, it get the error as below:
terminate called after throwing an instance of 'cl::sycl::runtime_error'
what(): Native API failed. Native API returns: -42 (CL_INVALID_BINARY) -42 (CL_INVALID_BINARY)
make: *** [run_hw] Aborted
After I search this issue of devcloud stratix10, it might relate to FPGA Board Initialization, right? According to https://community.intel.com/t5/Intel-DevCloud/Invalid-Binary-for-FPGA-Stratix-10-Nodes/m-p/1300748#M... and https://www.intel.com/content/www/us/en/develop/documentation/oneapi-programming-guide/top/programmi...
it seems i need to do Initialization if i want to use stratix10. if my understanding is right, can you teach me how to modify my makefile.fpga ? if not, please tell me how to solve it.
below is my makefile.fpga content, can you teach me how to add stratix initialization into my makefile.fpga ?
CXX := dpcpp
CXXFLAGS = -O2 -g -std=c++17
SRC := kernel.cpp
.PHONY: fpga_emu run_emu clean
fpga_emu: kernel.fpga_emu
hw: kernel.fpga
report: kernel_report.a
kernel.fpga_emu: $(SRC)
$(CXX) $(CXXFLAGS) -fintelfpga $^ -o $@ -DFPGA_EMULATOR=1
a.o: $(SRC)
$(CXX) $(CXXFLAGS) -fintelfpga -c $^ -o $@ -DFPGA=1
kernel.fpga: a.o
$(CXX) $(CXXFLAGS) -fintelfpga $^ -o $@ -Xshardware
run_emu: kernel.fpga_emu
./kernel.fpga_emu
run_hw: kernel.fpga
./kernel.fpga
dev.o: $(SRC)
$(CXX) $(CXXFLAGS) -fintelfpga -c $^ -o $@ -DFPGA=1
kernel_report.a: dev.o
$(CXX) $(CXXFLAGS) -fintelfpga -fsycl-link $^ -o $@ -Xshardware
clean:
rm -rf *.o *.d *.out *.mon *.emu *.aocr *.aoco *.prj *.fpga_emu *.fpga_emu_buffers kernel.fpga *.a
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for posting in Intel Forum.
Kindly let us know which devcloud you are using(oneapi/fpga/edge).
Regards,
Janani Chandran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi JananiC
I am using oneAPI devcloud.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi JananiC
Error enumerating AFCs: not found
Error enumerating AFCs: not found
Error enumerating AFCs: not found
make: *** [run_hw] Segmentation fault
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page