I got that error as well when I've upgrade to latest rocm version:
After that, I've purged all the rocm, hip and hsa stuff and switched to the kernel they tell us to use (linux-headers-4.13.0-32-generic). Here's a full documentation: https://rocm.github.io/ROCmInstall.html
After that, it worked.
Code:
$ /opt/rocm/bin/rocminfo
hsa api call failure at line 900, file: /home/jenkins/jenkins-root/workspace/compute-rocm-rel-1.8/rocminfo/rocminfo.cc. Call returned 4104
After that, I've purged all the rocm, hip and hsa stuff and switched to the kernel they tell us to use (linux-headers-4.13.0-32-generic). Here's a full documentation: https://rocm.github.io/ROCmInstall.html
After that, it worked.