CSL-KU / firesim-nvdla

FireSim-NVDLA: NVIDIA Deep Learning Accelerator (NVDLA) Integrated with RISC-V Rocket Chip SoC Running on the Amazon FPGA Cloud
Other
161 stars 31 forks source link

Cannot create instance from FPGA Developer AMI 1.6.0 since not available at community AMI #29

Closed freezinghands closed 2 years ago

freezinghands commented 2 years ago

Hi, now 2022 I'm trying to run YOLOv3 on NVDLA by following steps described on this repo,

and I encountered a problem.

There's no 'FPGA Developer AMI 1.6.0' available, and I tried 'FPGA Developer AMI 1.6.1' anyway.

Below I tried 2 different attempts to run YOLOv3 by following your guide.

  1. Install FireSim 1.6.0 with this repo's source codes (git clone https://github.com/CSL-KU/firesim-nvdla) on 'FPGA Developer AMI 1.6.1' : While modifying 'config_runtime.ini' and creating instance with running command 'firesim launchrunfarm', the instance was not created and following messages appeared.

centos@ip-192-168-3-15.ec2.internal:/shared/nvdla/firesim-nvdla/deploy$ firesim launchrunfarm /usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release. from cryptography.hazmat.backends import default_backend FireSim Manager. Docs: http://docs.fires.im Running: launchrunfarm

Fatal error. Traceback (most recent call last): File "/shared/nvdla/firesim-nvdla/deploy/firesim", line 307, in main(args) File "/shared/nvdla/firesim-nvdla/deploy/firesim", line 255, in main globals()args.task File "/shared/nvdla/firesim-nvdla/deploy/firesim", line 139, in launchrunfarm runtime_conf.runfarm.launch_run_farm() File "/shared/nvdla/firesim-nvdla/deploy/runtools/run_farm.py", line 227, in launch_run_farm spotmaxprice) File "/shared/nvdla/firesim-nvdla/deploy/awstools/awstools.py", line 149, in launch_run_instances tags={ 'fsimcluster': fsimclustertag }) File "/shared/nvdla/firesim-nvdla/deploy/awstools/awstools.py", line 89, in launch_instances f1_image_id = get_f1_ami_id() File "/shared/nvdla/firesim-nvdla/deploy/awstools/awstools.py", line 29, in get_f1_ami_id assert len(response['Images']) == 1 AssertionError The full log of this run is: /shared/nvdla/firesim-nvdla/deploy/logs/2022-01-04--12-21-55-launchrunfarm-CRQFU20Z4A2PJ73Q.log

It seems that 'FPGA Developer AMI 1.6.0' is not available and FireSim cannot create the instance named 'FPGA Developer AMI 1.6.0' since it is not available on community AMI.

  1. Install FireSim 'stable' version with official repo's source codes (git clone https://github.com/firesim/firesim) on 'FPGA Developer AMI 1.6.1' : There was no problem on running single-node simulation, but I cannot install darknet since there is no darnet install contents in official repo. I did copied several directories/files on this repo (including riscv-linux/, riscv-pk/, workloads/, get-darknet.sh) and followed the steps on this repo such as ./marshal -v build workloads/darknet-nvdla.json it did not work. The full log of this error is shown below.

centos@ip-192-168-3-36.ec2.internal:~/firesim/sw/firesim-software$ ./marshal -v build workloads/darknet-nvdla.json DEBUG: Loading /home/centos/firesim/target-design/chipyard/software/firemarshal/boards/firechip/base-workloads/bare-base.json DEBUG: Loading /home/centos/firesim/target-design/chipyard/software/firemarshal/boards/firechip/base-workloads/br-base.json DEBUG: Loading /home/centos/firesim/target-design/chipyard/software/firemarshal/boards/firechip/base-workloads/fedora-base.json DEBUG: Creating distro bare : None DEBUG: Creating distro br : 9928 DEBUG: Creating distro fedora : None DEBUG: Loaded bare-base.json DEBUG: Loaded br-base.json DEBUG: Loaded fedora-base.json DEBUG: Loaded bare DEBUG: Loaded br.9928 DEBUG: Loaded fedora ERROR: Cannot locate workload: darknet-nvdla.json

Please let me know where do I get 'FPGA Developer AMI 1.6.0' if available, or how can I do success running YOLOv3 now?