Skip to content

Commit 6395af5

Browse files
committed
add test file and docs for memtarget
1 parent f4b768a commit 6395af5

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

scripts/docs_config/api.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,15 @@ Mempolicy
116116
.. doxygenfile:: mempolicy.h
117117
:sections: define enum typedef func
118118

119+
Memtarget
120+
==========================================
121+
122+
TODO: Add general information about memtarges.
123+
124+
Memtarget
125+
------------------------------------------
126+
.. doxygenfile:: memtarget.h
127+
:sections: define enum typedef func
119128

120129
Inter-Process Communication
121130
==========================================

test/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,10 @@ if(LINUX) # OS-specific functions are implemented only for Linux now
215215
NAME mempolicy
216216
SRCS memspaces/mempolicy.cpp
217217
LIBS ${LIBNUMA_LIBRARIES})
218+
add_umf_test(
219+
NAME memtarget
220+
SRCS memspaces/memtarget.cpp
221+
LIBS ${LIBNUMA_LIBRARIES})
218222
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND UMF_BUILD_FUZZTESTS)
219223
add_subdirectory(fuzz)
220224
endif()

test/memspaces/memtarget.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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 "memspace_helpers.hpp"
6+
#include <umf/memspace.h>
7+
#include <umf/memtarget.h>
8+
9+
using umf_test::test;

0 commit comments

Comments
 (0)