-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
param:compiler.acceleratorBinaryContent="dcp" or "bitstream" #7
Comments
which branch of gemx repository are you using? |
I use 2017.4 branch |
you have to use xilinx_aws-vu9p-f1-04261818_dynamic_5_0 dsa for F1 that has SDx 2017.4 support. I have updated the gemx/Makefile in 2017.4 branch to reflect this change. Please set up DSA_PATH in the Makefile to point to the directory that contains xilinx_aws-vu9p-f1-04261818_dynamic_5_0 folder. Then run the following make command. It should generate a .xclbin that works on F1. Let me know if you have more problems. make run_hw GEMX_ddrWidth=32 GEMX_XddrWidth=16 GEMX_keepMacBits=1 GEMX_argInstrWidth=1 GEMX_numKernels=1 GEMX_runGemv=0 GEMX_runGemm=1 GEMX_runTransp=0 GEMX_runSpmv=0 GEMX_gemmMBlocks=4 GEMX_gemmKBlocks=4 GEMX_gemmNBlocks=4 GEMX_splitMesh=1 GEMX_part=vu9pf1 GEN_BIN_PROGRAM="gemm 512 512 512 512 512 512 512 1 0 A05 B05 C05 X05 gemm 1024 1024 1024 1024 1024 1024 1024 1 0 A1k B1k C1k X1K gemm 1024 1024 1024 1536 2048 2560 1024 1 0 A1kld B1kld C1kld X1kld" 2>&1 | tee log |
I type the command, and it seems to generate xclbin properly. Yet it gave some error about xbinst, and I'm not sure what this is for...
I tried to execute out_host/gemx_host.exe with the following command
How can I solve this? |
Please comment out line 307, 308, 309 and 311 in Makefile as shown below: and run following command to make the host executable again copy the gemx_host.exe to the F1 instance and rerun the command ./gemx_host.exe ../out_hw/gemx.xclbin app.bin app_out.bin Let me know if you have any success. We will update the Makefile later. |
@lisaliu1 when tried to run the python test INFO: wrote 8192 bytes to out_host/app_gold.bin ****** xbinst v2017.4 (64-bit) INFO: [XBINST 60-895] Target platform: /home/centos/src/project_data/aws-fpga/SDAccel/aws_platform/xilinx_aws-vu9p-f1-04261818_dynamic_5_0/xilinx_aws-vu9p-f1-04261818_dynamic_5_0.xpfm Thanks for helping. UPDATE: sourcing |
@Mahdi89 The README file for 2017.4 branch has been updated to include the steps for building gemx image for aws f1. When building gemx image for aws f1, you don't need to run xbinst to generate driver because the f1 instance you are using should have the driver installed already. So, for solving the error you met, please comment out the xbinst command in the Makefile. |
I use AWS EC2 f1 instance to run gemx. With (this AMI)[https://aws.amazon.com/marketplace/pp/B06VVYBLZZ]
however after I compile the gemm_kernel.h into gemm.xclbin and upload it to AWS to create AFI, I got this error:
and here is the log file on aws s3 bucket
After some trial and error, I change a parameter in the step of compiling gemx.xo to gemx.xclbin
param:compiler.acceleratorBinaryContent="bitstream"
toparam:compiler.acceleratorBinaryContent="dcp"
, and I successfully build the AFI without an error.Can I create an AFI with a xclbin file that
param:compiler.acceleratorBinaryContent
is set tobitstream
?Also, though I build AFI successfully, the example program
gemx_api_gemm.exe
stuck at waiting the kernel to return. Can somebody help me out with this issue?Thank you!
The text was updated successfully, but these errors were encountered: