You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: FAQs.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -112,7 +112,7 @@ AWS FPGA generation and EC2 F1 instances are supported in us-east-1 (N. Virginia
112
112
113
113
**Q: What is the process for creating an AFI?**
114
114
115
-
The AFI process starts by creating Custom Logic (CL) code that conforms to the [Shell Specification]((./hdk/docs/AWS_Shell_Interface_Specification.md). Then, the CL must be compiled using the HDK scripts which leverages Vivado tools to create a Design Checkpoint (DCP). That DCP is submitted to AWS for generating an AFI using the `aws ec2 create-fpga-image` API.
115
+
The AFI process starts by creating Custom Logic (CL) code that conforms to the [Shell Specification](./hdk/docs/AWS_Shell_Interface_Specification.md). Then, the CL must be compiled using the HDK scripts which leverages Vivado tools to create a Design Checkpoint (DCP). That DCP is submitted to AWS for generating an AFI using the `aws ec2 create-fpga-image` API.
116
116
117
117
Use the AWS CLI `describe-fpga-images` API to get information about the created AFIs using the AFI ID provided by `create-fpga-image`, or to list available AFIs for your account. See [describe-fpga-images](./hdk/docs/describe_fpga_images.md) document for details on how to use this API.
118
118
@@ -153,7 +153,7 @@ If a developer uses local tools and license, please check the [supported version
153
153
154
154
**Q: Is there a “best practice” system template?**
155
155
156
-
AWS prefers not to limit developers to a specific template in terms of how we advise to use AWS FPGAs. A good overview of these interfaces can be found [here](https://github.com/aws/aws-fpga/blob/master/hdk/docs/Programmer_View.md)
156
+
AWS prefers not to limit developers to a specific template in terms of how we advise to use AWS FPGAs. A good overview of these interfaces can be found [here](./hdk/docs/Programmer_View.md)
157
157
158
158
159
159
**Q: Do I need to get a Xilinx license to generate an AFI?**
@@ -374,7 +374,7 @@ Details on the Shell Interface to the FPGA Link IP blocks are provided in the [S
374
374
375
375
**Q: What clock speed does the FPGA utilize?**
376
376
377
-
The FPGA Shell provides a selectable frequency clocks (up to 8 clocks) from the Shell to the Custom Logic (CL) region, please refer to the [Shell Interface Specification](./hdk/docs/AWS_Shell_interface_Specification.md) and the [available clock recipe](./hdk/docs/clock_recipes.csv) for the available clocks and frequency options.
377
+
The FPGA Shell provides a selectable frequency clocks (up to 8 clocks) from the Shell to the Custom Logic (CL) region, please refer to the [Shell Interface Specification](./hdk/docs/AWS_Shell_Interface_Specification.md) and the [available clock recipe](./hdk/docs/clock_recipes.csv) for the available clocks and frequency options.
378
378
379
379
*Note: All the AXI interfaces between Shell and CL are synchronous to `clk_main_a0`, which has a default of 125Mhz using `A0` clock recipe.
This section lists issues/perceived issue and their associated investigations or solutions.
3
+
## Q: When I run my application on F1, I see these errors: ERROR: Failed to load xclbin ERROR: No program executable for device ERROR: buffer (2) is not resident in device (0)", how to debug these errors?
4
+
5
+
A: First double check that your AFI has been generated successfully by reviewing the SDAccel README. Second, check that you are running your application on F1 using sudo. Lastly, check that your AWS CLI (configure) was configured using output format as json.
6
+
7
+
## Q: During AFI generation (create_sdaccel_afi.sh), how do I resolve this error: "An error occurred (AuthFailure) when calling the CreateFpgaImage operation: AWS was not able to validate the provided access credentials"?
8
+
9
+
A: The script has output an error, therefore, for AFI generation to complete you will need to resolve this error.
10
+
"An error occurred (AuthFailure) when calling the CreateFpgaImage operation: AWS was not able to validate the provided access credentials"
11
+
12
+
This error message means your AWS credentials were not setup properly or your IAM does not have access to the API (CreateFpgaImage). Here is some additional info on how to setup IAM privileges.
## Q: During AFI generation (create_sdaccel_afi.sh), my AFI failed to generate and I see this error message in the log: "Provided clocks configuration is illegal. See AWS FPGA HDK documentation for supported clocks configuration. Frequency 0 is lower than minimal supported frequency of 80", how do I debug this message?
19
+
20
+
A: Please confirm that you successfully compiled your kernel for HW. For the quick start examples, you will need to have completed the quick start and successfully passed this command: make TARGETS=hw DEVICES=$AWS_PLATFORM all
21
+
22
+
## Q: What is a xclbin or binary container on SDAccel?
23
+
24
+
A: The [xclbin](https://www.xilinx.com/html_docs/xilinx2017_2/sdaccel_doc/topics/design-flows/concept-create-compute-unit-binary.html) file or the "Binary Container" is a binary library of kernel compute units that will be loaded together into an OpenCL context for a specific device.
25
+
AWS uses a modified version of the xclbin called awsxclbin. The awsxclbin contains the xclbin metadata and AFI ID.
4
26
5
27
## Q: What can we investigate when xocc fails with a path not meeting timing?
6
28
A: An example is WARNING: [XOCC 60-732] Link warning: One or more timing paths failed timing targeting <ORIGINAL_FREQ> MHz for <CLOCK_NAME>. The frequency is being automatically changed to <NEW_SCALED_FREQ> MHz to enable proper functionality.
@@ -29,28 +51,11 @@ A:
29
51
1. Add assert where run fails and check same conditions for hw_emu
30
52
1. See "Chapter 8 - Debugging Applications in the SDAccel Environment" in [latest SDAccel Environment User Guide]
31
53
32
-
## Q: Host code failed to link?
33
-
A:
34
-
1. Is the code linking to *.so libs and are they setup correctly on the compiler command line argument
35
-
- Note, there has been issues reported where -ldl or -lxilinxopencl needed to be put as the last argument of the comman line for the compiler; try linking on the command line and see if moving the -l options corrects the issue.
36
-
1. Check if LD_LIBRARY_PATH is setup correctly
37
-
38
-
## Q: sw_emu passes but hw_emu fails
39
-
A:
40
-
1. arrow down failure: what mismatches, only LSB bits different?
41
-
1. Differences due to floating point?
42
-
1. Run valgrind on executable to assert no seg faults or out of bounds accesses
43
-
1. Have a reduced testcase data size if hw_emu takes too long
44
-
1. Have sdaccel.ini configured with [Emulation] section using launch_waveform=gui or batch to generate waveform for analysis; see "Application Timeline" in [latest SDAccel Environment User Guide]
45
-
46
54
## Q: Bitstream creation fails to create design less that 60 MHz?
47
55
A: SDAccel flow does not allow clocks running less that 60 MHz kernel clock, therefore, you will need to debug further using [HLS Debug suggestions](./docs/SDAccel_HLS_Debug.md)
48
56
49
-
## Q: Using the .xcp file generated from xocc results in an error
50
-
A:
51
-
1. Raw xclbin (.xcp file) from xocc is not usable
52
-
1. Directly using the .xcp file without conversion to .xclbin file will result in an error - Error: ... invalid binary
53
-
1. See [Instructions on how to create AFI and subsequent execution process](../README.md#create-an-amazon-fpga-image-afi-for-your-kernel)
57
+
## Q: Using the .xcp file generated from xocc results in an error?
58
+
A: Directly using the .xcp file without conversion to .xclbin file will result in an error - Error: ... invalid binary. See [Instructions on how to create AFI and subsequent execution process](../README.md#create-an-amazon-fpga-image-afi-for-your-kernel)
54
59
55
60
56
61
# Additional Resources
@@ -60,32 +65,27 @@ The [AWS SDAccel README].
60
65
Xilinx web portal for [Xilinx SDAccel documentation] and for [Xilinx SDAccel GitHub repository]
61
66
62
67
Links pointing to **latest** version of the user guides
63
-
[UG1023: SDAccel Environment User Guide][latest SDAccel Environment User Guide]
64
-
[UG1021: SDAccel Environment Tutorial: Getting Started Guide (including emulation/build/running on H/W flow)][latest UG1021]
Copy file name to clipboardExpand all lines: SDAccel/README.md
+15-15
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,9 @@ There are three simple steps for accelerating your application on an AWS F1 inst
5
5
2. Create an AFI
6
6
3. Run the FPGA accelerated application on AWS FPGA instances
7
7
8
-
This quick start guide will use a simple "Hello World" SDAccel example to get you started
8
+
This quick start guide will use a simple "Hello World" SDAccel example to get you started.
9
+
10
+
It is highly recommended you read the documentation and utilize software and hardware emulation prior to running on F1. The F1 HW compile time is 4-5hrs, therefore, software and hardware emulation should be used during development.
9
11
10
12
11
13
# Table of Content
@@ -39,15 +41,14 @@ This quick start guide will use a simple "Hello World" SDAccel example to get yo
39
41
<aname="iss"></a>
40
42
## AWS Account, F1/EC2 Instances, On-Premises, AWS IAM Permissions, AWS CLI and S3 Setup (One-time Setup)
41
43
*[Setup an AWS Account](https://aws.amazon.com/free/)
42
-
* Launch an [FPGA Developer AMI](https://aws.amazon.com/marketplace/pp/B06VVYBLZZ) which comes pre-installed with SDAccel and required licenses on an F1 instance
43
-
* You may use this F1 instance to [Build your Host Application and Xilinx FPGA Binary](#createapp), however, it may be more cost efficient to either:
44
-
* Launch a second[FPGA Developer AMI](https://aws.amazon.com/marketplace/pp/B06VVYBLZZ) on a lower cost EC2 instance, with a minimum of 30GiB RAM), **OR**
45
-
* Follow the [On-Premises Instructions](../../hdk/docs/on_premise_licensing_help.md) to install and obtain a license from Xilinx.
46
-
* Setup AWS IAM permissions for creating FPGA Images (CreateFpgaImage and DescribeFpgaImages). [EC2 API Permissions are described in more detail](http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ec2-api-permissions.html)<!-- #TBF Is there a better guide (syntax/links to for explicitly making this update? -->
44
+
* Launch an instance using the [FPGA Developer AMI](https://aws.amazon.com/marketplace/pp/B06VVYBLZZ) which comes pre-installed with SDAccel and required licenses.
45
+
* You may use this F1 instance to [build your host application and Xilinx FPGA binary](#createapp), however, it may be more cost efficient to either:
46
+
* Launch the[FPGA Developer AMI](https://aws.amazon.com/marketplace/pp/B06VVYBLZZ) on a lower cost EC2 instance, with a minimum of 30GiB RAM), **OR**
47
+
* Follow the [On-Premises Instructions](../../hdk/docs/on_premise_licensing_help.md) to purchase and install a license from Xilinx.
48
+
* Setup AWS IAM permissions for creating FPGA Images (CreateFpgaImage and DescribeFpgaImages). [EC2 API Permissions are described in more detail](http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ec2-api-permissions.html). It is highly recommended that you validate your AWS IAM permissions prior to proceeding with this quick start. By calling the [DescribeFpgaImages API](../hdk/docs/describe_fpga_images.md) you can check that your IAM permissions are correct.
47
49
*[Setup AWS CLI and S3 Bucket](docs/Setup_AWS_CLI_and_S3_Bucket.md) to enable AFI creation.
48
-
49
-
50
-
50
+
* Install optional [packages](packages.txt) required to run all examples. If you do not install these packages, some examples may not work properly. The setup scripts will warn you of any missing packages.
51
+
* Additional dependancies may get flagged during the AWS SDAccel scripts as warnings or errors.
51
52
52
53
<aname="gitsetenv"></a>
53
54
## Github and Environment Setup (Once per new instance or machine)
@@ -56,15 +57,14 @@ This quick start guide will use a simple "Hello World" SDAccel example to get yo
56
57
*[AWS Platform](./aws_platform/xilinx_aws-vu9p-f1_4ddr-xpr-2pr_4_0) that allows Xilinx FPGA Binary files to target AWS F1 instances
57
58
*[AFI Creation script](./tools/create_sdaccel_afi.sh) that generates an AFI and AWS FPGA Binary from a Xilinx FPGA Binary
58
59
*[SDAccel HAL](./userspace) source code and binary files for mapping SDAccel/OpenCL runtime libraries to AWS FPGA instance.
@@ -180,7 +180,7 @@ When AFI creation completes successfully, the output should contain:
180
180
181
181
If the “State” code indicates the AFI generation has "failed", the AFI creation logs can be found in the bucket location (```s3://<bucket-name>/<logs-folder-name>```) provided to create_sdaccel_afi.sh above. These will detail the errors encountered during the AFI creation process.
182
182
183
-
For help with AFI creation issues, see [create-fpga-image error codes](../../hdk/docs/create_fpga_image_error_codes.md)
183
+
For help with AFI creation issues, see [create-fpga-image error codes](../hdk/docs/create_fpga_image_error_codes.md)
184
184
185
185
186
186
@@ -189,7 +189,7 @@ For help with AFI creation issues, see [create-fpga-image error codes](../../hdk
189
189
# 3. Run the FPGA accelerated application on F1
190
190
191
191
Here are the steps:
192
-
* Start an F1 instance using [FPGA Developer AMI on AWS Marketplace](https://aws.amazon.com/marketplace/pp/B06VVYBLZZ). Currently, the developer AMI is the only supported AMI for running SDAccel applications on F1.
192
+
* Start an F1 instance using [FPGA Developer AMI on AWS Marketplace](https://aws.amazon.com/marketplace/pp/B06VVYBLZZ), alternatively you can [create your own Runtime AMI](docs/Create_Runtime_AMI.md) for running your SDAccel applications on F1.
193
193
**Assuming the developer flow (compilation) was done on a separate instance you will need to:*
194
194
* Copy the compiled host executable (exe) to new instance
195
195
* Copy the \*.awsxclbin AWS FPGA binary file to the new instance
0 commit comments