hwlocality\_api\_version(3) Library Functions Manual hwlocality\_api\_version(3)

# [NAME](#NAME)

hwlocality\_api\_version - API version

# [SYNOPSIS](#SYNOPSIS)

## [Macros](#Macros)

#define **HWLOC\_API\_VERSION** 0x00020c00  
#define **HWLOC\_COMPONENT\_ABI** 7

## [Functions](#Functions)

unsigned **hwloc\_get\_api\_version** (void)

# [Detailed Description](#Detailed_Description)

# [Macro Definition Documentation](#Macro_Definition_Documentation)

## [#define HWLOC\_API\_VERSION 0x00020c00](#_define_HWLOC_API_VERSION___0x00020c00)

Indicate at build time which hwloc API version is being used. This number is updated to (X&lt;&lt;16)+(Y&lt;&lt;8)+Z when a new release X.Y.Z actually modifies the API.

Users may check for available features at build time using this number (see **How do I handle API changes?**).

**Note**

This should not be confused with HWLOC\_VERSION, the library version. Two stable releases of the same series usually have the same **HWLOC\_API\_VERSION** even if their HWLOC\_VERSION are different.

## [#define HWLOC\_COMPONENT\_ABI 7](#_define_HWLOC_COMPONENT_ABI___7)

Current component and plugin ABI version (see **hwloc/plugins.h**).

# [Function Documentation](#Function_Documentation)

## [unsigned hwloc\_get\_api\_version (void )](#unsigned_hwloc_get_api_version_%28void_%29)

Indicate at runtime which hwloc API version was used at build time. Should be **HWLOC\_API\_VERSION** if running on the same version.

**Returns**

the build-time version number.

# [Author](#Author)

Generated automatically by Doxygen for Hardware Locality (hwloc) from the source code.

Version 2.15.0 Hardware Locality (hwloc)

---

Document: hwloc_get_api_version(3) from hwloc-cuda-13.0 2.15.0-r0 (Chainguard OS)
Source: https://github.com/open-mpi/hwloc
