Variorum Topology Functions

As part of Variorum’s advanced API for developers and contributors, we provide a hwloc topology structure and some basic functionality for our users. These functions are described below.

Defined in variorum/variorum_topology.h.

int variorum_get_num_sockets(void)

Get number of sockets on the hardware platform.

Returns:

Number of sockets, otherwise -1

int variorum_get_num_cores(void)

Get number of cores on the hardware platform.

Returns:

Number of cores, otherwise -1

int variorum_get_num_threads(void)

Get number of threads on the hardware platform.

Returns:

Number of threads, otherwise -1