Skip to content

Commit 96635f9

Browse files
committed
Enable IPC tests for OS provider with scalable pool
1 parent fba0eb3 commit 96635f9

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
@@ -209,6 +209,10 @@ if(LINUX AND (NOT UMF_DISABLE_HWLOC)) # OS-specific functions are implemented
209209
PRIVATE UMF_POOL_DISJOINT_ENABLED=1)
210210
target_link_libraries(umf_test-provider_os_memory PRIVATE disjoint_pool)
211211
endif()
212+
if(UMF_POOL_SCALABLE_ENABLED)
213+
target_compile_definitions(umf_test-provider_os_memory
214+
PRIVATE UMF_POOL_SCALABLE_ENABLED=1)
215+
endif()
212216

213217
add_umf_test(
214218
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
@@ -10,6 +10,7 @@
1010

1111
#include <umf/memory_provider.h>
1212
#include <umf/pools/pool_disjoint.h>
13+
#include <umf/pools/pool_scalable.h>
1314
#include <umf/providers/provider_os_memory.h>
1415

1516
using umf_test::test;
@@ -389,6 +390,10 @@ static std::vector<ipcTestParams> ipcTestParamsList = {
389390
{umfDisjointPoolOps(), &disjointParams, umfOsMemoryProviderOps(),
390391
&os_params, &hostAccessor},
391392
#endif
393+
#if (defined UMF_POOL_SCALABLE_ENABLED)
394+
{umfScalablePoolOps(), nullptr, umfOsMemoryProviderOps(), &os_params,
395+
&hostAccessor},
396+
#endif
392397
};
393398

394399
INSTANTIATE_TEST_SUITE_P(osProviderTest, umfIpcTest,

0 commit comments

Comments
 (0)