how can I find the version of the Gaudi software? how do I know that I’m using the latest one?
Hi @jonathanadler, there are two options to check the current version of Gaudi software/packages that are being used on the platform
Option 1: To find the current installed Gaudi software/packages versions and if updates are available, you can run the commands below in the terminal based on your OS. These commands will print currently installed versions and if indicate if updates are available
- On Ubuntu: apt list --installed|grep habana
- On Amazon Linux 2: yum --showduplicates list habana*
Option 2: The hl-smi utility tool can provide information about firmware and SynapseSW version. This is documented in the System Management Tools guide. You can run hl-smi -L and look at the Driver Version in the table. You can see an example like this:
Please review the release notes to find more information on the latest release and compare with your current installed packages
is it possible to get this version also from python runtime?
Probably no direct way to check from python.
You could execute hl-smi in python using subprocess and parse its output
import subprocess
x = subprocess.run("hl-smi", capture_output=True, shell=True)
version = str(x.stdout).split('\\n')[2].split(':')[-1].split('|')[0].strip()