Numba supports HSA APU programming by directly compiling a restricted subset of Python code into HSA kernels and device functions following the HSA execution model. Kernels written in Numba appear to have direct access to NumPy arrays.
Several important terms in the topic of HSA programming are listed here:
This is a preview of the HSA feature. We only support Kavari on 64-bit Ubuntu at this time. Please consult offical documentation at this documentation. about system requirement.
Follow this document
for installation instructions to enable HSA support for the system.
Be sure to use the
.deb packages to simplify the process.
Aftwards, the following libraries must be added to your
libhsa-runtime-ext64.so are in
libhsakmt.so.1 has no default location and is available from
The current implementation uses the stable LLVM compiler from AMD.
To install, use
.deb file from https://github.com/HSAFoundation/HSAIL-HLC-Stable
This will install the binaries to
/opt/amd/bin, which is expected by Numba.