aws / aws-fpga

Official repository of the AWS EC2 FPGA Hardware and Software Development Kit
Other
1.51k stars 514 forks source link

Ensure udev rules works if devices changed since creation #533

Closed ghost closed 3 years ago

ghost commented 3 years ago

In the current version, udev rules are generated with hardcoded KERNEL udev entries for PCI devices that were found when the sdk_setup.sh script is run.

But, if the number of FPGA change, the udev rule is not updated without re-run the script. This can be an issue if building an AMI on an instance with a single FPGA (or even no FPGA) and then using the AMI to start an instance type with more FPGA devices.

So, the udev rule was changed to dynamically detect devices independently to the initial configuration.