tenstorrent/tt-smi

Properly handle incorrect CLI arguments in tt-smi

Opened this issue · 3 comments

Tried to run tt-rmi -r with multiple device ids but the program crashed. Should do some argparsing and fail gracefully with a cleaner error message.
image

Looks like there is a device id 8 doesn't exist on the pci bus. Could you remove it and try again?
But, I will also add a cleaner exit when the device isn't found - to make it easier for user to debug

Oh yeah I didn't even realize I added an extra device, but yeah we should still handle it gracefully.

more try/except blocks! ;-)