File tree Expand file tree Collapse file tree 5 files changed +18
-19
lines changed Expand file tree Collapse file tree 5 files changed +18
-19
lines changed Original file line number Diff line number Diff line change 11/*
22 *
3- * Copyright (C) 2024 Intel Corporation
3+ * Copyright (C) 2024-2025 Intel Corporation
44 *
55 * Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
66 * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
77 *
88 */
99
10- #include "umf/pools/pool_scalable.h"
11- #include "umf/providers/provider_os_memory.h"
12-
1310#include <stdio.h>
1411#include <string.h>
1512
13+ #include <umf/pools/pool_scalable.h>
14+ #include <umf/providers/provider_os_memory.h>
15+
1616int main (void ) {
1717 // A result object for storing UMF API result status
1818 umf_result_t res ;
Original file line number Diff line number Diff line change 88 */
99#define _GNU_SOURCE 1
1010
11- #include <umf/base.h>
12- #include <umf/pools/pool_scalable.h>
13-
1411#include <fcntl.h>
1512#include <linux/falloc.h>
1613#include <stdio.h>
1916#include <sys/mman.h>
2017#include <unistd.h>
2118
19+ #include <umf/base.h>
20+ #include <umf/pools/pool_scalable.h>
21+
2222// Define the size for address reservation
2323#define ADDRESS_RESERVATION ((size_t)16 * 1024 * 1024 * 1024)
2424
Original file line number Diff line number Diff line change 11/*
2- * Copyright (C) 2024 Intel Corporation
2+ * Copyright (C) 2024-2025 Intel Corporation
33 *
44 * Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
55 * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
99#include <stdlib.h>
1010#include <string.h>
1111
12+ #include <umf/memory_pool.h>
1213#include <umf/memory_provider.h>
14+ #include <umf/pools/pool_jemalloc.h>
1315#include <umf/providers/provider_file_memory.h>
1416#include <umf/providers/provider_os_memory.h>
1517
16- #include <umf/memory_pool.h>
17- #include <umf/pools/pool_jemalloc.h>
18-
1918static umf_memory_pool_handle_t create_dram_pool (void ) {
2019 umf_memory_provider_handle_t provider_dram = NULL ;
2120 umf_memory_pool_handle_t pool_dram ;
Original file line number Diff line number Diff line change 1010#include <stdio.h>
1111#include <stdlib.h>
1212
13- #include " umf/ipc.h"
14- #include " umf/memory_pool.h"
15- #include " umf/pools/pool_disjoint.h"
16- #include " umf/providers/provider_level_zero.h"
13+ #include < umf/ipc.h>
14+ #include < umf/memory_pool.h>
15+ #include < umf/pools/pool_disjoint.h>
16+ #include < umf/providers/provider_level_zero.h>
1717
1818#include "examples_level_zero_helpers.h"
1919
Original file line number Diff line number Diff line change 11/*
22 *
3- * Copyright (C) 2024 Intel Corporation
3+ * Copyright (C) 2024-2025 Intel Corporation
44 *
55 * Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
66 * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
77 *
88 */
99
10- #include <umf/mempolicy.h>
11- #include <umf/memspace.h>
12-
1310#include <numa.h>
1411#include <numaif.h>
1512#include <stdio.h>
1613#include <string.h>
1714
15+ #include <umf/mempolicy.h>
16+ #include <umf/memspace.h>
17+
1818#include "examples_utils.h"
1919
2020// Function to create a memory provider which allocates memory from the specified NUMA node
You can’t perform that action at this time.
0 commit comments