Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to check the performance of the FPGA running firesim-nvdla #11

Open
CristinaZN opened this issue Nov 30, 2019 · 17 comments
Open

how to check the performance of the FPGA running firesim-nvdla #11

CristinaZN opened this issue Nov 30, 2019 · 17 comments
Labels
question Further information is requested

Comments

@CristinaZN
Copy link

i successfully run the single node simulation and also i tried the dark-net on f1.
How to get the performance like areas, LUTs, power.

@farzadfch
Copy link
Member

For the number of LUTs, you can build the hardware (see Building Your Own Hardware in README), and check the area report in the build results. Maybe I can better help you if you tell me what you exactly want to achieve.

@farzadfch farzadfch added the question Further information is requested label Dec 2, 2019
@CristinaZN
Copy link
Author

thank you so much.

the specific question is:
i want to replace some module in nvdla/hw, for example the camc, and then re-build firesim-nvdla to check the performance.

@CristinaZN
Copy link
Author

can i clone this firesim-nvdla repo and just use "firesim buildafi" to run the nvdla and darknet?

@farzadfch
Copy link
Member

farzadfch commented Dec 5, 2019 via email

@CristinaZN
Copy link
Author

can i modify the target-design/firechip/nvidia-dla-blocks/hw/vmod
and use firesim launchrunfarm, infrasetup, runworkload to get a new design?

@farzadfch
Copy link
Member

farzadfch commented Dec 8, 2019 via email

@CristinaZN
Copy link
Author

thanks for your reply.
may i make sure if i understand your explanation.
i only need to modify the verilogs in nvidia-dla-blocks/vsrc/large, and leave those config in config_*.ini unchanged, and firesim buildafi?

@farzadfch
Copy link
Member

farzadfch commented Dec 8, 2019 via email

@farzadfch
Copy link
Member

farzadfch commented Dec 8, 2019 via email

@CristinaZN
Copy link
Author

it's very helpful. thanks a lot!
If i disconnected ssh to firesim manager, does it affect the c5 ? how can i re attach to the screen ?

@farzadfch
Copy link
Member

farzadfch commented Dec 9, 2019 via email

@CristinaZN
Copy link
Author

i redetach to the c5 , and found those messages. it seems that all synthesis passed. but how to solve this problem....
2019-12-09 21:24:38,819 [aws_build ] [DEBUG]
2019-12-09 21:24:38,820 [flush ] [DEBUG] [localhost] local: aws ec2 create-fpga-image --input-storage-location Bucket=firesim-cristina,Key=dcp/19_12_09-083351.Developer_CL.tar-192.168.0.208-ITGFH8RO7L.tar --logs-storage-location Bucket=firesim-cristina,Key=logs/ --name "firesim-quadcore-no-nic-nvdla-ddr3-llc4mb" --description "firesim-buildtriplet:FireSimNoNIC-FireSimRocketChipQuadCoreConfig_WithNVDLALarge-FireSimDDR3FRFCFSLLC4MBConfig75MHz,firesim-deploytriplet:FireSimNoNIC-FireSimRocketChipQuadCoreConfig_WithNVDLALarge-FireSimDDR3FRFCFSLLC4MBConfig75MHz,firesim-commit:31357f963f875fc2ee37045c8655a68a276b5ff7-dirty"
2019-12-09 21:24:39,655 [flush ] [DEBUG] Fatal error: local() encountered an error (return code 255) while executing 'aws ec2 create-fpga-image --input-storage-location Bucket=firesim-cristina,Key=dcp/19_12_09-083351.Developer_CL.tar-192.168.0.208-ITGFH8RO7L.tar --logs-storage-location Bucket=firesim-cristina,Key=logs/ --name "firesim-quadcore-no-nic-nvdla-ddr3-llc4mb" --description "firesim-buildtriplet:FireSimNoNIC-FireSimRocketChipQuadCoreConfig_WithNVDLALarge-FireSimDDR3FRFCFSLLC4MBConfig75MHz,firesim-deploytriplet:FireSimNoNIC-FireSimRocketChipQuadCoreConfig_WithNVDLALarge-FireSimDDR3FRFCFSLLC4MBConfig75MHz,firesim-commit:31357f963f875fc2ee37045c8655a68a276b5ff7-dirty" '
2019-12-09 21:24:39,655 [flush ] [DEBUG] Aborting.
2019-12-09 21:24:39,678 [ ] [ERROR] Fatal error.

@farzadfch
Copy link
Member

farzadfch commented Dec 10, 2019 via email

@CristinaZN
Copy link
Author

ok, i get a new AFGI, and i replace the AFGI id in config_hwdb.ini with the new one.
But when i do firesim infrasetup, i encountered the problem:
2019-12-10 09:23:04,522 [instance_log] [INFO ] [192.168.0.91] Flashing FPGA Slot: 0 with agfi: agfi-039ec091f24dffcb4.
2019-12-10 09:23:04,523 [flush ] [DEBUG] [192.168.0.91] run: sudo fpga-load-local-image -S 0 -I agfi-039ec091f24dffcb4 -A
2019-12-10 09:23:05,659 [flush ] [DEBUG] [192.168.0.91] out: Error: (5) invalid-afi-id
2019-12-10 09:23:05,659 [flush ] [DEBUG] [192.168.0.91] out: The agfi id passed is invalid or you do not have permission to load
2019-12-10 09:23:05,659 [flush ] [DEBUG] [192.168.0.91] out: the AFI.
2019-12-10 09:23:05,659 [flush ] [DEBUG] [192.168.0.91] out:
2019-12-10 09:23:05,659 [flush ] [DEBUG] Fatal error: run() received nonzero return code 5 while executing!
2019-12-10 09:23:05,660 [flush ] [DEBUG] Requested: sudo fpga-load-local-image -S 0 -I agfi-039ec091f24dffcb4 -A
2019-12-10 09:23:05,660 [flush ] [DEBUG] Executed: /bin/bash -l -c "sudo fpga-load-local-image -S 0 -I agfi-039ec091f24dffcb4 -A"
2019-12-10 09:23:05,660 [flush ] [DEBUG] Aborting.
2019-12-10 09:23:05,682 [ ] [ERROR] Fatal error.

@farzadfch
Copy link
Member

farzadfch commented Dec 10, 2019 via email

@CristinaZN
Copy link
Author

i get AGFI from logs.
i tried to build it again and it works.
many thanks!!

@farzadfch
Copy link
Member

Awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants