Skip to content

Commit a71bec9

Browse files
committed
cleanup includes in examples
1 parent 25d9074 commit a71bec9

File tree

5 files changed

+18
-19
lines changed

5 files changed

+18
-19
lines changed

examples/basic/basic.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
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+
1616
int main(void) {
1717
// A result object for storing UMF API result status
1818
umf_result_t res;

examples/custom_file_provider/custom_file_provider.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
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>
@@ -19,6 +16,9 @@
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

examples/dram_and_fsdax/dram_and_fsdax.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
@@ -9,13 +9,12 @@
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-
1918
static 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;

examples/ipc_level_zero/ipc_level_zero.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
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

examples/memspace_numa/memspace_numa.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
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

0 commit comments

Comments
 (0)