Don't change the makefile. Default is on device
1. Run script O2build.script
This creates the host code and the kernel
To run on device:
Makefile flags
OMP ?= 0
MODE ?= normal
AOCL_BOARD ?= p385_hpc_d5
#AOCL_BOARD ?= p385_hpc_a7
#AOCL_FLAGS ?= -march=emulator
#AOCL_FLAGS ?= -march=emulator -c
AOCL_FLAGS ?= -v -c --report
#AOCL_FLAGS ?= --report
This creates the aoc file
After this bin and cetus look like this
[umunipala@newark cetus_output]$ ls
matmul.cpp openarc_kernel openarc_kernel.aoco openarc_kernel.cl
[umunipala@newark cetus_output]$ cd ../bin
[umunipala@newark bin]$ ls
Timer binBuilder_opencl matmul_ACC openarc_kernel.cl
now goto cetus output > (where aoc file is)
aoc openarc_kernel.cl -o openarc_kernel_p385_hpc_d5PCIe385n.aocx --board p385_hpc_a7 - here a7 is the second board; need to correct to a5
This is similar to
(Compile kernel for emulation)
aoc -v --board device/hello_world.cl -o bin/hello_world.aocx ( )
aoc -march=emulator -v --board
device/hello_world.cl -o bin/hello_world_emulation.aocx
aoc -v openarc_kernel.cl -o ../bin/openarc_kernel_p385_hpc_d5PCIe385n.aocx --board p385_hpc_d5
(on oswald
aoc -v openarc_kernel.cl -o ../bin/openarc_kernel_p510t_sch_ax115PCIe510n.aocx --board p510t_sch_ax115
)
goto cetus_output>>
Then run ./SIMGMS_ACC this takes device in default.
#################################################################################Running on FPGA device on oswald??
1. create the aocx from aoco first
aoc -v openarc_kernel.cl -o ../bin/openarc_kernel_p510t_sch_ax115PCIe510n.aocx --board p510t_sch_ax115
Then run ./SIMGMS_ACC this takes device in default.
No comments:
Post a Comment