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 1
1
/*
2
2
*
3
- * Copyright (C) 2024 Intel Corporation
3
+ * Copyright (C) 2024-2025 Intel Corporation
4
4
*
5
5
* Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
6
6
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
7
*
8
8
*/
9
9
10
- #include "umf/pools/pool_scalable.h"
11
- #include "umf/providers/provider_os_memory.h"
12
-
13
10
#include <stdio.h>
14
11
#include <string.h>
15
12
13
+ #include <umf/pools/pool_scalable.h>
14
+ #include <umf/providers/provider_os_memory.h>
15
+
16
16
int main (void ) {
17
17
// A result object for storing UMF API result status
18
18
umf_result_t res ;
Original file line number Diff line number Diff line change 8
8
*/
9
9
#define _GNU_SOURCE 1
10
10
11
- #include <umf/base.h>
12
- #include <umf/pools/pool_scalable.h>
13
-
14
11
#include <fcntl.h>
15
12
#include <linux/falloc.h>
16
13
#include <stdio.h>
19
16
#include <sys/mman.h>
20
17
#include <unistd.h>
21
18
19
+ #include <umf/base.h>
20
+ #include <umf/pools/pool_scalable.h>
21
+
22
22
// Define the size for address reservation
23
23
#define ADDRESS_RESERVATION ((size_t)16 * 1024 * 1024 * 1024)
24
24
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (C) 2024 Intel Corporation
2
+ * Copyright (C) 2024-2025 Intel Corporation
3
3
*
4
4
* Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
5
5
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
9
9
#include <stdlib.h>
10
10
#include <string.h>
11
11
12
+ #include <umf/memory_pool.h>
12
13
#include <umf/memory_provider.h>
14
+ #include <umf/pools/pool_jemalloc.h>
13
15
#include <umf/providers/provider_file_memory.h>
14
16
#include <umf/providers/provider_os_memory.h>
15
17
16
- #include <umf/memory_pool.h>
17
- #include <umf/pools/pool_jemalloc.h>
18
-
19
18
static umf_memory_pool_handle_t create_dram_pool (void ) {
20
19
umf_memory_provider_handle_t provider_dram = NULL ;
21
20
umf_memory_pool_handle_t pool_dram ;
Original file line number Diff line number Diff line change 10
10
#include <stdio.h>
11
11
#include <stdlib.h>
12
12
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>
17
17
18
18
#include "examples_level_zero_helpers.h"
19
19
Original file line number Diff line number Diff line change 1
1
/*
2
2
*
3
- * Copyright (C) 2024 Intel Corporation
3
+ * Copyright (C) 2024-2025 Intel Corporation
4
4
*
5
5
* Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
6
6
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
7
*
8
8
*/
9
9
10
- #include <umf/mempolicy.h>
11
- #include <umf/memspace.h>
12
-
13
10
#include <numa.h>
14
11
#include <numaif.h>
15
12
#include <stdio.h>
16
13
#include <string.h>
17
14
15
+ #include <umf/mempolicy.h>
16
+ #include <umf/memspace.h>
17
+
18
18
#include "examples_utils.h"
19
19
20
20
// 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