Hl-smi permission issue

Hi,
I’m unable to run hl-smi as anything but root. Any suggestions on how to fix it?

torel@h001:~$ hl-smi
Log initialization failed: Failed opening file /var/log/habana_logs//hl-smi_log.txt for writing: Permission denied

–ToreL

Thanks @Igor_G for the answer:

  1. Point variable HABANA_LOGS=/var/log/habana_logs to user home directory. for example HABANA_LOGS=~username/habana_logs
  2. Correct permissions for /var/log/habana_logs. For example chmod -R 777 /var/log/habana_logs