Skip to content

Commit 4f7d97d

Browse files
authored
Fixes to scripts based on customer feedback (aws#484)
* Fixes for prepare_new_cl.sh * Update to FAQ * Early exit if running sdaccel_setup on a vitis instance * Changes per feedback from CSA
1 parent 0b840c6 commit 4f7d97d

File tree

4 files changed

+17
-10
lines changed

4 files changed

+17
-10
lines changed

FAQs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,6 @@ You would need a valid [on premise license](./hdk/docs/on_premise_licensing_help
502502
We have seen this issue when running RDP in 32 bit color mode where Vivado shows up as a blank window.
503503
Please modify RDP options to choose any color depth less than 32 bit and try re-connecting.
504504

505-
**Q: Why did my AFI creation fail with `***ERROR***: DCP has DNA_PORT instantiation, ingestion failed, exiting`?
505+
**Q: Why did my AFI creation fail with `***ERROR***: DCP has DNA_PORT instantiation, ingestion failed, exiting`?**
506506

507507
AWS does not support creating AFI's with the Device DNA instantiated within your design. Please create your design without instantiating the DNA_PORT primitive to be able to create your AFI.

Vitis/README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ The F1 HW Target compile time is ~50 minutes, therefore, software and hardware e
3838
<a name="iss"></a>
3939
## AWS Account, F1/EC2 Instances, On-Premises, AWS IAM Permissions, AWS CLI and S3 Setup (One-time Setup)
4040
* [Setup an AWS Account](https://aws.amazon.com/free/)
41-
* Launch an instance using the [FPGA Developer AMI](https://aws.amazon.com/marketplace/pp/B06VVYBLZZ) which comes pre-installed with SDAccel and required licenses.
41+
* Launch an instance using the [FPGA Developer AMI](https://aws.amazon.com/marketplace/pp/B06VVYBLZZ) which comes pre-installed with Vitis and required licenses.
4242
* You may use this F1 instance to [build your host application and Xilinx FPGA binary](#createapp), however, it is more cost efficient to either:
4343
* Launch the [FPGA Developer AMI](https://aws.amazon.com/marketplace/pp/B06VVYBLZZ) on a compute EC2 instance, with a minimum of 30GiB RAM), **OR**
4444
* Follow the [On-Premises Instructions](../hdk/docs/on_premise_licensing_help.md) to purchase and install a license from Xilinx.
@@ -175,19 +175,18 @@ When AFI creation completes successfully, the output should contain:
175175
...
176176
```
177177

178-
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.
178+
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_vitis_afi.sh above. These will detail the errors encountered during the AFI creation process.
179179

180180
For help with AFI creation issues, see [create-fpga-image error codes](../hdk/docs/create_fpga_image_error_codes.md)
181181

182182

183183
<a name="runonf1"></a>
184184
# 3. Run the FPGA accelerated application on Amazon FPGA instances
185185

186-
* Start an FPGA instance using [FPGA Developer AMI on AWS Marketplace](https://aws.amazon.com/marketplace/pp/B06VVYBLZZ) and check the AMI [compatibility table](../README.md#devAmi) and [runtime compatibility table](./docs/Create_Runtime_AMI.md#runtime-ami-compatibility-table). Alternatively, you can [create your own Runtime AMI](docs/Create_Runtime_AMI.md) for running your SDAccel applications on Amazon FPGA instances.
187-
* *Assuming the developer flow (compilation) was done on a separate instance you will need to:*
188-
* Copy the compiled host executable (exe) to the new instance
186+
* Start an FPGA instance using [FPGA Developer AMI on AWS Marketplace](https://aws.amazon.com/marketplace/pp/B06VVYBLZZ) and check the AMI [compatibility table](../README.md#devAmi) and [runtime compatibility table](./docs/Create_Runtime_AMI.md#runtime-ami-compatibility-table). Alternatively, you can [create your own Runtime AMI](docs/Create_Runtime_AMI.md) for running your Vitis applications on Amazon FPGA instances.
187+
* *Assuming the developer flow (compilation) was done on a separate build instance you will need to:*
188+
* Copy the compiled host executable (exe) to the new F1 instance
189189
* Copy the \*.awsxclbin AWS FPGA binary file to the new instance
190-
* Depending on the host code, the \*.awsxclbin may need to named \<hostcodename>.hw.\<platformname>.awsxclbin .For Example: ```vector_addition.hw.xilinx_aws-vu9p-f1_shell-v04261818_201920_1.awsxclbin```
191190
* Copy any data files required for execution to the new instance
192191
* [Clone the github repository to the new F1 instance and install runtime drivers](#gitsetenv)
193192

@@ -196,15 +195,15 @@ For help with AFI creation issues, see [create-fpga-image error codes](../hdk/do
196195
$ git clone https://github.com/aws/aws-fpga.git $AWS_FPGA_REPO_DIR
197196
$ cd $AWS_FPGA_REPO_DIR
198197
$ source vitis_setup.sh
199-
$ ./helloworld ./vector_addition.awsxclbin
198+
$ ./host ./vadd.awsxclbin
200199
```
201200
202201
* Alternatively, to only setup the runtime environment & execute your host application:
203202
```
204203
$ cd $AWS_FPGA_REPO_DIR
205204
$ source vitis_runtime_setup.sh # Other runtime env settings needed by the host app should be setup after this step
206205
# Wait till the MPD service has initialized. Check systemctl status mpd
207-
$ ./helloworld ./vector_addition.awsxclbin
206+
$ ./host ./vadd.awsxclbin
208207
```
209208
* The runtime setup script also starts the Xilinx XRT Message Proxy Daemon(MPD) service. To learn more about the XRT implementation, check the [XRT Instructions](./docs/XRT_installation_instructions.md#mpd)
210209

hdk/cl/developer_designs/prepare_new_cl.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919
# Check if /build and /design directories exist, abort
2020
# Check if $HDK_COMMON_DIR exist
2121

22-
cp -r $HDK_SHELL_DIR/new_cl_template/build .
22+
cp -rl $HDK_SHELL_DIR/new_cl_template/build .
2323
cp -r $HDK_SHELL_DIR/new_cl_template/design .

sdaccel_setup.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,19 @@ for (( i = 0; i < ${#args[@]}; i++ )); do
158158
esac
159159
done
160160

161+
162+
if [[ ! -z "$XILINX_VITIS" ]]; then
163+
debug_msg "XILINX_VITIS is set"
164+
err_msg "XILINX_VITIS variable is set, but you are calling sdaccel_setup.sh. This likely means that you are calling source sdaccel_setup.sh with Xilinx Vitis installed. Xilinx has replaced SDAccel with Vitis from 2019.2 release onwards. Please checkout the Vitis README and flow instead."
165+
return 1
166+
fi
167+
161168
# Check XILINX_SDX is set
162169
if ! check_set_xilinx_sdx; then
163170
return 1
164171
fi
165172

173+
166174
info_msg " XILINX_SDX is set to $XILINX_SDX"
167175
# Install patches as required.
168176
info_msg " Checking & installing required patches"

0 commit comments

Comments
 (0)