-
Notifications
You must be signed in to change notification settings - Fork 0
/
setupnotes.txt
113 lines (96 loc) · 3.97 KB
/
setupnotes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
How to build and run the image
------------------------------
It was found it was necessary to do both the compile and the run on the Amazon
server.
1. Create the afi image from the binary
log onto system:
ssh -i "******.pem" [email protected]
cd $AWS_FPGA_REPO_DIRo
source ./sdaccel_setup.sh
source $XILINX_SDX/settings64.sh
SDACCEL_DIR/tools/create_sdaccel_afi.sh -xclbin=mmintf.bin -o=mmintf -s3_bucket=rushc -s3_dcp_key=key -s3_logs_key=logs
INFO: Found xclbin 'mmintf.bin'
cat *afi_id.txt
{
"FpgaImageId": "afi-0081cd4e3d5577bb6",
"FpgaImageGlobalId": "agfi-055c39ff84ac94d43"
}
#check to see when image is ready
aws ec2 describe-fpga-images --fpga-image-ids afi-0081cd4e3d5577bb6
aws ec2 describe-fpga-images --fpga-image-ids afi-0081cd4e3d5577bb6
{
"FpgaImages": [
{
"UpdateTime": "2018-02-05T20:23:07.000Z",
"Name": "mmintf.bin",
"PciId": {
"SubsystemVendorId": "0xfedd",
"VendorId": "0x1d0f",
"DeviceId": "0xf000",
"SubsystemId": "0x1d51"
},
"FpgaImageGlobalId": "agfi-055c39ff84ac94d43",
"Public": false,
"State": {
"Code": "available"
},
"ShellVersion": "0x071417d3",
"OwnerId": "247724514994",
"FpgaImageId": "afi-0081cd4e3d5577bb6",
"CreateTime": "2018-02-05T19:32:16.000Z",
"Description": "mmintf.bin"
}
]
}
-- wait for available.
2. Run on the fpga:
change instace from c4 large to f1.2xlarge
aws ec2 describe-fpga-images --fpga-image-ids afi-0081cd4e3d5577bb6
{
"FpgaImages": [
{
"UpdateTime": "2018-02-05T20:23:07.000Z",
"Name": "mmintf.bin",
"PciId": {
"SubsystemVendorId": "0xfedd",
"VendorId": "0x1d0f",
"DeviceId": "0xf000",
"SubsystemId": "0x1d51"
},
"FpgaImageGlobalId": "agfi-055c39ff84ac94d43",
"Public": false,
"State": {
"Code": "available"
},
"ShellVersion": "0x071417d3",
"OwnerId": "247724514994",
"FpgaImageId": "afi-0081cd4e3d5577bb6",
"CreateTime": "2018-02-05T19:32:16.000Z",
"Description": "mmintf.bin"
}
]
}
AFI 0 none cleared 1 ok 0 0x071417d3
AFIDEVICE 0 0x1d0f 0x1042 0000:00:1d.0
centos@ip-172-30-0-17 aws-fpga]$ sudo fpga-describe-local-image -S 0 -H
Type FpgaImageSlot FpgaImageId StatusName StatusCode ErrorName ErrorCode ShVersion
AFI 0 none cleared 1 ok 0 0x071417d3
Type FpgaImageSlot VendorId DeviceId DBDF
AFIDEVICE 0 0x1d0f 0x1042 0000:00:1d.0
sudo fpga-clear-local-image -S 0
AFI 0 none cleared 1 ok 0 0x071417d3
AFIDEVICE 0 0x1d0f 0x1042 0000:00:1d.0
[centos@ip-172-30-0-17 aws-fpga]$ sudo fpga-describe-local-image -S 0 -H
Type FpgaImageSlot FpgaImageId StatusName StatusCode ErrorName ErrorCode ShVersion
AFI 0 none cleared 1 ok 0 0x071417d3
Type FpgaImageSlot VendorId DeviceId DBDF
AFIDEVICE 0 0x1d0f 0x1042 0000:00:1d.0
[centos@ip-172-30-0-17 aws-fpga]$ sudo fpga-load-local-image -S 0 -I agfi-055c39ff84ac94d43
AFI 0 agfi-055c39ff84ac94d43 loaded 0 ok 0 0x071417d3
AFIDEVICE 0 0x1d0f 0xf000 0000:00:1d.0
sudo fpga-clear-local-image -S 0
225 sudo fpga-describe-local-image -S 0 -H
226 sudo fpga-load-local-image -S 0 -I agfi-055c39ff84ac94d43
227 sudo sh
source /opt/Xilinx/SDx/2017.1.rte/setup.sh
./mmintf.exe mmintf.awsxclbin