Skip to content

Commit

Permalink
quick partial fix for not supported symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
bratpiorka committed Oct 10, 2024
1 parent 9fc6aa3 commit 81836d5
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,18 @@ if(NOT UMF_DISABLE_HWLOC)
set(UMF_LIBS ${UMF_LIBS} ${LIBHWLOC_LIBRARIES})

if(NOT WINDOWS)
add_optional_symbol(umfMemspaceCreateFromNumaArray)
add_optional_symbol(umfMemspaceHighestBandwidthGet)
add_optional_symbol(umfMemspaceHighestCapacityGet)
add_optional_symbol(umfMemspaceHostAllGet)
add_optional_symbol(umfMemspaceLowestLatencyGet)
endif()
endif()

# File with unsuported symbols (checks UMF_COMMON_COMPILE_DEFINITIONS)
set(UMF_SOURCES ${UMF_SOURCES}
unsupported.c
)

if(WINDOWS)
message(STATUS "UMF_OPTIONAL_SYMBOLS: ${UMF_OPTIONAL_SYMBOLS_WINDOWS}")
else()
Expand Down
1 change: 1 addition & 0 deletions src/libumf.def.in
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ EXPORTS
umfMempolicySetCustomSplitPartitions
umfMempolicySetInterleavePartSize
umfMemspaceClone
umfMemspaceCreateFromNumaArray
umfMemspaceDestroy
umfMemspaceFilterByCapacity
umfMemspaceFilterById
Expand Down
1 change: 1 addition & 0 deletions src/libumf.map.in
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ UMF_1.0 {
umfMempolicySetCustomSplitPartitions;
umfMempolicySetInterleavePartSize;
umfMemspaceClone;
umfMemspaceCreateFromNumaArray;
umfMemspaceDestroy;
umfMemspaceFilterByCapacity;
umfMemspaceFilterById;
Expand Down
24 changes: 24 additions & 0 deletions src/unsupported.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
*
* Copyright (C) 2023-2024 Intel Corporation
*
* Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*
*/

#include <umf.h>
#include <umf/memspace.h>

#if UMF_NO_HWLOC

umf_result_t umfMemspaceCreateFromNumaArray(unsigned *nodeIds, size_t numIds,
umf_memspace_handle_t *hMemspace) {
(void)nodeIds;
(void)numIds;
(void)hMemspace;

return UMF_RESULT_ERROR_NOT_SUPPORTED;
}

#endif

0 comments on commit 81836d5

Please sign in to comment.