Skip to content

Commit 906d234

Browse files
committed
doc: add some words about HWLOC_API_VERSION vs HWLOC_VERSION
Signed-off-by: Brice Goglin <[email protected]>
1 parent 77e4c6e commit 906d234

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

doc/hwloc.doxy

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3436,6 +3436,11 @@ and <tt>hwloc_get_api_version()</tt> came only in 1.1.1.
34363436
Also do not use the old cpuset API since it was deprecated and superseded
34373437
by the bitmap API in 1.1, and later removed in 1.5.
34383438

3439+
If you ever need to look at the library version instead of the API version,
3440+
you may want to use HWLOC_VERSION instead.
3441+
Two stable releases of the same series usually have the same ::HWLOC_API_VERSION
3442+
even if their HWLOC_VERSION are different.
3443+
34393444

34403445

34413446
\htmlonly

include/hwloc.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ extern "C" {
8787
*
8888
* Users may check for available features at build time using this number
8989
* (see \ref faq_upgrade).
90+
*
91+
* \note This should not be confused with HWLOC_VERSION, the library version.
92+
* Two stable releases of the same series usually have the same ::HWLOC_API_VERSION
93+
* even if their HWLOC_VERSION are different.
9094
*/
9195
#define HWLOC_API_VERSION 0x00020100
9296

0 commit comments

Comments
 (0)