这是我的AWS论坛帖子的副本,其中详细说明了解决方案:
由于https://github.com/aws/aws-fpga.git的内容简直令人惊讶_不能正常工作,这里是使其顺利运行的过程:
git clone https://github.com/aws/aws-fpga.git
cd aws-fpga /
vim ./sdk/userspace/fpga_libs/fpga_pci/fpga_pci.cLine 214,改变这个:
char wc_suffix [3] =“ 0”;
if(map-> resource_burstable [bar_id]&& write_combining){
strncpy(wc_suffix,“_ wc”,sizeof(wc_suffix));
进入这个:
char wc_suffix [4] =“ 0 0 0 0”;
if(map-> resource_burstable [bar_id]&& write_combining){
strncpy(wc_suffix,“_ wc”,4);
}下一个:
vim ./SDAccel/tools/awssak2/MakefileLine 53,像这样添加-lpthread:
LDFLAGS + = -L $(AWS_FPGA_MGMTLIB_DIR)-lpthreadNext:
vim ./sdk/linux_kernel_drivers/xocl/xocl_bo.cLines 36和54,改变
#if(LINUX_VERSION_CODE> = KERNEL_VERSION(4,13,0)||
(定义(RHEL_RELEASE_CODE)&&
RHEL_RELEASE_CODE> = RHEL_RELEASE_VERSION(7,5)))成
#if(LINUX_VERSION_CODE> = KERNEL_VERSION(4,13,0))下一个:
vim ./sdk/linux_kernel_drivers/xocl/xocl_drv.c在315和587Run行进行相同的修改
source sdaccel_setup.sh你可以安全地忽略
警告:未安装ocl-icd - 请运行:sudo yum install ocl-icd
...警告,似乎脚本只与redhat / centos / stupiddistro / fedora alikes兼容。我必须注意到SDx / SDAccel op(内部部署)没有任何平台,下一个
移动就是复制:
./SDAccel/aws_platform/xilinx_aws-vu9p-f1_dynamic_5_0/into(如果不存在则创建平台文件夹):
./Xilinx/SDx/2017.4.op/platforms/希望这会有所帮助。
以上来自于谷歌翻译
以下为原文
Here's a copy of my AWS forum post where I detail the solution:
As the https://github.com/aws/aws-fpga.git stuff simply and amazingly _doesn't work as is_, here's the procedure to make it run smoothly:
git clone https://github.com/aws/aws-fpga.gitcd aws-fpga/
vim ./sdk/userspace/fpga_libs/fpga_pci/fpga_pci.c
Line 214, change this:
char wc_suffix[3] = " "; if (map->resource_burstable[bar_id] && write_combining) { strncpy(wc_suffix, "_wc", sizeof(wc_suffix)); }
Into this:
char wc_suffix[4] = " "; if (map->resource_burstable[bar_id] && write_combining) { strncpy(wc_suffix, "_wc", 4); }
Next:
vim ./SDAccel/tools/awssak2/Makefile
Line 53, add -lpthread like this:
LDFLAGS += -L$(AWS_FPGA_MGMTLIB_DIR) -lpthread
Next:
vim ./sdk/linux_kernel_drivers/xocl/xocl_bo.c
Lines 36 and 54, change
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 13, 0) || (defined(RHEL_RELEASE_CODE) && RHEL_RELEASE_CODE >=RHEL_RELEASE_VERSION(7,5)))
into
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 13, 0))
Next:
vim ./sdk/linux_kernel_drivers/xocl/xocl_drv.c
Do the same previous change at lines 315 and 587
Run
source sdaccel_setup.sh
You can safely ignore the
WARNING: ocl-icd not installed - please run: sudo yum install ocl-icd...
warnings, it seems the script was made to be compatible only with redhat/centos/stupiddistro/fedora alikes.
I has to be noted that SDx/SDAccel op (on premise) doesn't come with any platform, the the next move is to copy:
./SDAccel/aws_platform/xilinx_aws-vu9p-f1_dynamic_5_0/
into (create the platforms folder if not present):
./Xilinx/SDx/2017.4.op/platforms/
Hope this will help.