Skip to content

Commit 6665ae5

Browse files
committed
Remove UMF_NUMA_FLAGS_MOVE and UMF_NUMA_FLAGS_MOVE_ALL
They are only applicable for already allocated memory. Right now, UMF provider does not expose any API for calling mbind after allocation or moving specific pages.
1 parent 4c95ea8 commit 6665ae5

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

include/umf/providers/provider_os_memory.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ typedef enum umf_numa_mode_t {
4343

4444
typedef enum umf_numa_flags_t {
4545
UMF_NUMA_FLAGS_STRICT = (1 << 0),
46-
UMF_NUMA_FLAGS_MOVE = (1 << 1),
47-
UMF_NUMA_FLAGS_MOVE_ALL = (1 << 2),
4846

4947
UMF_NUMA_FLAGS_MAX // must be the last one
5048
} umf_numa_flags_t;

src/provider/provider_os_memory.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,7 @@ static int translate_one_numa_flag(unsigned numa_flag) {
172172
switch (numa_flag) {
173173
case UMF_NUMA_FLAGS_STRICT:
174174
return HWLOC_MEMBIND_STRICT;
175-
case UMF_NUMA_FLAGS_MOVE:
176-
return HWLOC_MEMBIND_MIGRATE;
177-
case UMF_NUMA_FLAGS_MOVE_ALL:
175+
default:
178176
return -1; /* unsupported */
179177
}
180178
return -1;

0 commit comments

Comments
 (0)