topoNodeInfoBasic

Return very basic information on the node

Synopsis

int topoNodeInfoBasic(topoinfo_t *topo, int *corenum, int *socketnum,
                     int *corespersocket, int *socketspernode)

Input Parameter

topo
Pointer to topoinfo that was returned by topoInit.

Output Parameters

corenum
Points to the core number on the node. -1 if unknown.
socketnum
Points to the socket (chip) number on the node. -1 if unknown.
corespersocket
Number of cores (defined by the system) per socket (chip). -1 if unknown.
socketspernode
Number of sockets (processor chips) per node. -1 if unknown.

Return value

Zero on success and non-zero on failure