Skip to content

Commit b02c3c5

Browse files
authored
Merge pull request #1397 from lplewa/memspace_experiment
move memspace api to experimental
2 parents 5835cb8 + 6dcd296 commit b02c3c5

28 files changed

+55
-43
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,8 @@ Packages required for using this pool and executing tests/benchmarks (not requir
327327

328328
### Memspaces (Linux-only)
329329

330+
> **Note**: The memspace, memtarget and mempolicy APIs are experimental and may change in future releases.
331+
330332
TODO: Add general information about memspaces.
331333

332334
#### Host all memspace

docs/config/api.rst

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,29 +136,38 @@ Memspace
136136

137137
TODO: Add general information about memspaces.
138138

139+
.. note::
140+
The memspace APIs are experimental and may change in future releases.
141+
139142
Memspace
140143
------------------------------------------
141-
.. doxygenfile:: memspace.h
144+
.. doxygenfile:: experimental/memspace.h
142145
:sections: define enum typedef func
143146

144147
Mempolicy
145148
==========================================
146149

147150
TODO: Add general information about mempolicies.
148151

152+
.. note::
153+
The mempolicy APIs are experimental and may change in future releases.
154+
149155
Mempolicy
150156
------------------------------------------
151-
.. doxygenfile:: mempolicy.h
157+
.. doxygenfile:: experimental/mempolicy.h
152158
:sections: define enum typedef func
153159

154160
Memtarget
155161
==========================================
156162

157163
TODO: Add general information about memtargets.
158164

165+
.. note::
166+
The memtarget APIs are experimental and may change in future releases.
167+
159168
Memtarget
160169
------------------------------------------
161-
.. doxygenfile:: memtarget.h
170+
.. doxygenfile:: experimental/memtarget.h
162171
:sections: define enum typedef func
163172

164173
Inter-Process Communication

docs/config/examples.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@ TODO
131131
Memspace
132132
==============================================================================
133133

134+
.. note::
135+
Memspace examples rely on experimental APIs that may change in future releases.
136+
134137
You can find the full examples code in the `examples/memspace`_ directory
135138
in the UMF repository.
136139

examples/memspace_hmat/memspace_hmat.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
/*
22
*
3-
* Copyright (C) 2024 Intel Corporation
3+
* Copyright (C) 2024-2025 Intel Corporation
44
*
55
* Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
66
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
77
*
88
*/
99

10-
#include <umf/mempolicy.h>
11-
#include <umf/memspace.h>
10+
#include <umf/experimental/mempolicy.h>
11+
#include <umf/experimental/memspace.h>
1212

1313
#include <numa.h>
1414
#include <numaif.h>

examples/memspace_numa/memspace_numa.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
#include <stdio.h>
1313
#include <string.h>
1414

15-
#include <umf/mempolicy.h>
16-
#include <umf/memspace.h>
15+
#include <umf/experimental/mempolicy.h>
16+
#include <umf/experimental/memspace.h>
1717

1818
#include "examples_utils.h"
1919

include/umf.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
#include <umf/base.h>
1414
#include <umf/memory_pool.h>
1515
#include <umf/memory_provider.h>
16-
#include <umf/mempolicy.h>
17-
#include <umf/memspace.h>
1816

1917
#ifdef __cplusplus
2018
extern "C" {

include/umf/mempolicy.h renamed to include/umf/experimental/mempolicy.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
*
3-
* Copyright (C) 2024 Intel Corporation
3+
* Copyright (C) 2024-2025 Intel Corporation
44
*
55
* Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
66
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

include/umf/memspace.h renamed to include/umf/experimental/memspace.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
#define UMF_MEMSPACE_H 1
1212

1313
#include <umf/base.h>
14+
#include <umf/experimental/mempolicy.h>
15+
#include <umf/experimental/memtarget.h>
1416
#include <umf/memory_pool.h>
1517
#include <umf/memory_provider.h>
16-
#include <umf/mempolicy.h>
17-
#include <umf/memtarget.h>
1818

1919
#ifdef __cplusplus
2020
extern "C" {
File renamed without changes.

src/mempolicy.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/*
22
*
3-
* Copyright (C) 2024 Intel Corporation
3+
* Copyright (C) 2024-2025 Intel Corporation
44
*
55
* Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
66
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
77
*
88
*/
9-
#include <umf/mempolicy.h>
9+
#include <umf/experimental/mempolicy.h>
1010

1111
#include "base_alloc_global.h"
1212
#include "mempolicy_internal.h"

0 commit comments

Comments
 (0)