hwloc.go 385 Bytes
Newer Older
songlinfeng's avatar
songlinfeng committed
1
2
3
4
5
package hwloc

// #cgo pkg-config: hwloc
// #include <stdint.h>
// #include <hwloc.h>
songlinfeng's avatar
songlinfeng committed
6
// #include <hwloc/autogen/config.h>
songlinfeng's avatar
songlinfeng committed
7
8
9
10
11
12
13
14
15
16
17
18
import "C"
import (
	"fmt"
)

func GetVersions() string {
	return fmt.Sprintf("hwloc: _VERSION: %s, _API_VERSION: %#08x, _COMPONENT_ABI: %d, Runtime: %#08x",
		C.HWLOC_VERSION,
		C.HWLOC_API_VERSION,
		C.HWLOC_COMPONENT_ABI,
		uint(C.hwloc_get_api_version()))
}