Skip to content

Commit ab1db6b

Browse files
committed
fix
1 parent 7652052 commit ab1db6b

File tree

3 files changed

+30
-1
lines changed

3 files changed

+30
-1
lines changed

test/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,10 @@ if(LINUX AND (NOT UMF_DISABLE_HWLOC)) # OS-specific functions are implemented
269269
NAME jemalloc_coarse_devdax
270270
SRCS pools/jemalloc_coarse_devdax.cpp malloc_compliance_tests.cpp
271271
LIBS jemalloc_pool)
272+
add_umf_test(
273+
NAME ipc_jemalloc_devdax
274+
SRCS pools/ipc_jemalloc_devdax.cpp
275+
LIBS jemalloc_pool)
272276
endif()
273277

274278
# This test requires Linux-only file memory provider

test/pools/ipc_jemalloc_devdax.cpp

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Copyright (C) 2024 Intel Corporation
2+
// Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
3+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4+
5+
#include "umf/pools/pool_jemalloc.h"
6+
#include "umf/providers/provider_devdax_memory.h"
7+
8+
#include "ipcFixtures.hpp"
9+
10+
HostMemoryAccessor hostAccessor;
11+
12+
auto defaultDevDaxParams = umfDevDaxMemoryProviderParamsDefault(
13+
getenv("UMF_TESTS_DEVDAX_PATH"),
14+
atol(getenv("UMF_TESTS_DEVDAX_SIZE") ? getenv("UMF_TESTS_DEVDAX_SIZE")
15+
: "0"));
16+
17+
static std::vector<ipcTestParams> ipcProxyPoolTestParamsList = {
18+
{umfJemallocPoolOps(), nullptr, umfDevDaxMemoryProviderOps(),
19+
&defaultDevDaxParams, &hostAccessor, false},
20+
};
21+
22+
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(umfIpcTest);
23+
24+
INSTANTIATE_TEST_SUITE_P(DevDaxProviderProxyPoolTest, umfIpcTest,
25+
::testing::ValuesIn(ipcProxyPoolTestParamsList));

test/providers/provider_level_zero.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,5 +332,5 @@ INSTANTIATE_TEST_SUITE_P(umfLevelZeroProviderTestSuite, umfIpcTest,
332332
::testing::Values(ipcTestParams{
333333
umfProxyPoolOps(), nullptr,
334334
umfLevelZeroMemoryProviderOps(),
335-
&l0Params_device_memory, &l0Accessor}));
335+
&l0Params_device_memory, &l0Accessor, false}));
336336
#endif

0 commit comments

Comments
 (0)