File tree Expand file tree Collapse file tree 4 files changed +31
-1
lines changed Expand file tree Collapse file tree 4 files changed +31
-1
lines changed Original file line number Diff line number Diff line change @@ -151,14 +151,18 @@ if(NOT UMF_DISABLE_HWLOC)
151
151
set (UMF_LIBS ${UMF_LIBS} ${LIBHWLOC_LIBRARIES} )
152
152
153
153
if (NOT WINDOWS )
154
- add_optional_symbol (umfMemspaceCreateFromNumaArray )
155
154
add_optional_symbol (umfMemspaceHighestBandwidthGet )
156
155
add_optional_symbol (umfMemspaceHighestCapacityGet )
157
156
add_optional_symbol (umfMemspaceHostAllGet )
158
157
add_optional_symbol (umfMemspaceLowestLatencyGet )
159
158
endif ()
160
159
endif ()
161
160
161
+ # File with unsuported symbols (checks UMF_COMMON_COMPILE_DEFINITIONS)
162
+ set (UMF_SOURCES ${UMF_SOURCES}
163
+ unsupported.c
164
+ )
165
+
162
166
if (WINDOWS )
163
167
message (STATUS "UMF_OPTIONAL_SYMBOLS: ${UMF_OPTIONAL_SYMBOLS_WINDOWS} " )
164
168
else ()
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ EXPORTS
43
43
umfMempolicySetCustomSplitPartitions
44
44
umfMempolicySetInterleavePartSize
45
45
umfMemspaceClone
46
+ umfMemspaceCreateFromNumaArray
46
47
umfMemspaceDestroy
47
48
umfMemspaceFilterByCapacity
48
49
umfMemspaceFilterById
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ UMF_1.0 {
37
37
umfMempolicySetCustomSplitPartitions;
38
38
umfMempolicySetInterleavePartSize;
39
39
umfMemspaceClone;
40
+ umfMemspaceCreateFromNumaArray;
40
41
umfMemspaceDestroy;
41
42
umfMemspaceFilterByCapacity;
42
43
umfMemspaceFilterById;
Original file line number Diff line number Diff line change
1
+ /*
2
+ *
3
+ * Copyright (C) 2023-2024 Intel Corporation
4
+ *
5
+ * Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
6
+ * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
+ *
8
+ */
9
+
10
+ #include <umf.h>
11
+ #include <umf/memspace.h>
12
+
13
+ #if UMF_NO_HWLOC
14
+
15
+ umf_result_t umfMemspaceCreateFromNumaArray (unsigned * nodeIds , size_t numIds ,
16
+ umf_memspace_handle_t * hMemspace ) {
17
+ (void )nodeIds ;
18
+ (void )numIds ;
19
+ (void )hMemspace ;
20
+
21
+ return UMF_RESULT_ERROR_NOT_SUPPORTED ;
22
+ }
23
+
24
+ #endif
You can’t perform that action at this time.
0 commit comments