Skip to content

Commit 732624e

Browse files
committed
Enable IPC tests for OS provider with scalable pool
1 parent baf99da commit 732624e

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

test/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,10 @@ if(LINUX AND (NOT UMF_DISABLE_HWLOC)) # OS-specific functions are implemented
191191
PRIVATE UMF_POOL_DISJOINT_ENABLED=1)
192192
target_link_libraries(umf_test-provider_os_memory PRIVATE disjoint_pool)
193193
endif()
194+
if(UMF_POOL_SCALABLE_ENABLED)
195+
target_compile_definitions(umf_test-provider_os_memory
196+
PRIVATE UMF_POOL_SCALABLE_ENABLED=1)
197+
endif()
194198

195199
add_umf_test(
196200
NAME provider_os_memory_multiple_numa_nodes

test/provider_os_memory.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
#include <umf/memory_provider.h>
1111
#include <umf/pools/pool_disjoint.h>
12+
#include <umf/pools/pool_scalable.h>
1213
#include <umf/providers/provider_os_memory.h>
1314

1415
using umf_test::test;
@@ -355,6 +356,10 @@ static std::vector<ipcTestParams> ipcTestParamsList = {
355356
{umfDisjointPoolOps(), &disjointParams, umfOsMemoryProviderOps(),
356357
&os_params, &hostAccessor},
357358
#endif
359+
#if (defined UMF_POOL_SCALABLE_ENABLED)
360+
{umfScalablePoolOps(), nullptr, umfOsMemoryProviderOps(), &os_params,
361+
&hostAccessor},
362+
#endif
358363
};
359364

360365
INSTANTIATE_TEST_SUITE_P(osProviderTest, umfIpcTest,

0 commit comments

Comments
 (0)