This repository contains several example of HSA GPU programming using numba.
HSA requires 64-bit linux machines with specific platform requirements. See https://github.com/HSAFoundation/HSA-Docs-AMD/wiki/HSA-Platforms-&-Installation for details.
The installation requires the use of conda. Please follow the instruction at http://conda.pydata.org/docs/installation.html to install conda.
Once conda is installed, user can create a conda environment with numba and all the dependencies necessary to run the examples using the following command:
conda create --name hsa_examples_env --file env_spec.txt
To activate the environment, run
source activate hsa_examples_env
Run full test suite:
./runtests.sh
Selectively run tests from subdirectories:
./runtests.sh <subdirectory>
Example:
./runtests.sh numba_hsa_examples/kerneldensity