AWS EC2 FPGA Software Development Kit#
The AWS FPGA SDK directory provides drivers and runtime tools for managing Amazon FPGA Images (AFIs) on EC2 FPGA instances. Use this SDK to load, clear, and interact with pre-built AFIs on F2 instances in Linux environments.
Note: This SDK is for deploying AFIs, not building or registering them. For AFI development, see the HDK.
Quick Start#
The AWS FPGA SDK requires gcc to be installed on a Linux
distribution AMI: sudo {yum|apt-get} install gcc
# Clone and setup and install the SDK with env variables (if not already done)
git clone https://github.com/aws/aws-fpga.git
cd aws-fpga
source sdk_setup.sh
# Check FPGA management tools
fpga-describe-local-image --help
fpga-load-local-image --help
# Verify SDK environment
echo $SDK_DIR
# Load an AFI (replace with your AFI ID and slot)
sudo fpga-load-local-image -S 0 -I agfi-0123456789abcdef0
# Verify AFI loaded
sudo fpga-describe-local-image -S 0
# Test management tools
cd $SDK_DIR/userspace/fpga_mgmt_examples
make
sudo ./fpga_mgmt_example
Core Tools#
Fully documented in FPGA Management Tools
Tool |
Purpose |
|---|---|
|
List available FPGA slots |
|
Load AFI to FPGA slot |
|
Check AFI status |
|
Clear AFI from slot |
All tools require ``sudo`` privileges. Use -help flag for
detailed options.
SDK Components#
Management Tools#
FPGA Management Tools - Command-line AFI management
C API Examples - Programmatic AFI control
Python Bindings - Python interface to FPGA APIs
Applications#
Virtual Ethernet - High-performance networking
MSI-X Interrupts - Interrupt handling implementation
Performance & Optimization#
Troubleshooting#
Refer to the FAQ section for FPGA Mgmt Tools or respective applications and tools.
Need help?
GitHub Issues - Code/documentation problems
AWS re:Post - F2 instance questions
Additional SDK Documentation#
- Virtual Ethernet
- Virtual Ethernet Architecture
- Application Guide
- Hardware Guide
- SDE Hardware Guide
- Overview
- Feature List
- Architecture
- Designing with the SDE
- Virtual Ethernet Application Guide
- MSI-X Interrupts Implementation Guide
- FPGA Management C API Examples
- Python Bindings
- Amazon FPGA Image (AFI) Management Tools
- Software Performance Optimizations for F2.48xlarge Instances
- Reducing AFI load times