/hc-info

Heterogeneous Compute Device Infomation

Primary LanguageC++MIT LicenseMIT

hc-info

Get info about the available HSA devices using HC C++ API.
see: https://github.com/RadeonOpenCompute/hcc


Building

The hcc compiler is needed. Install the ROCm Platform from
https://github.com/RadeonOpenCompute/ROCm to get it.
CMake is also needed.

Build it with:
mkdir build
cd build
cmake ..
make

Optionally cl-info can be installed with:
make install


Sample Output:

$ ./hc-info
2 available accelerators:

device path:             cpu
description:             CPU Device
version:                 0.0
dedicated memory:        0 KB
CPU shared memory:       true
max static tile size:    0
default CPU mem access:  read write
compute unit count:      0
double precision:        yes
debug:                   false
has display:             false
emulated:                true
HSA Profile:             none
peers:                   -

device path:             gfx7000
description:             AMD HSA Agent gfx7000
version:                 1.1
dedicated memory:        1073741824 KB
CPU shared memory:       false
max static tile size:    65536
default CPU mem access:  read write
compute unit count:      8
double precision:        yes
debug:                   false
has display:             false
emulated:                false
HSA Profile:             full
peers:                   gfx7000 

default accelerator:	gfx7000