Skip to content

Commit a1abb75

Browse files
Rename ctl internal header file
and clean up header guards in several header files.
1 parent 70c33d0 commit a1abb75

File tree

8 files changed

+29
-12
lines changed

8 files changed

+29
-12
lines changed

include/umf/providers/provider_cuda.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
*/
77

8-
#ifndef UMF_PROVIDER_CUDA_H
9-
#define UMF_PROVIDER_CUDA_H
8+
#ifndef UMF_CUDA_PROVIDER_H
9+
#define UMF_CUDA_PROVIDER_H
1010

1111
#include <umf/memory_provider_gpu.h>
1212

@@ -67,4 +67,4 @@ const umf_memory_provider_ops_t *umfCUDAMemoryProviderOps(void);
6767
}
6868
#endif
6969

70-
#endif /* UMF_PROVIDER_CUDA_H */
70+
#endif /* UMF_CUDA_PROVIDER_H */

include/umf/providers/provider_level_zero.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
*/
77

8-
#ifndef UMF_PROVIDER_LEVEL_ZERO_H
9-
#define UMF_PROVIDER_LEVEL_ZERO_H
8+
#ifndef UMF_LEVEL_ZERO_PROVIDER_H
9+
#define UMF_LEVEL_ZERO_PROVIDER_H
1010

1111
#include <umf/memory_provider_gpu.h>
1212

@@ -97,4 +97,4 @@ const umf_memory_provider_ops_t *umfLevelZeroMemoryProviderOps(void);
9797
}
9898
#endif
9999

100-
#endif /* UMF_PROVIDER_LEVEL_ZERO_H */
100+
#endif /* UMF_LEVEL_ZERO_PROVIDER_H */

src/ctl/ctl.h renamed to src/ctl/ctl_internal.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
/* Copyright 2016-2020, Intel Corporation */
1313

1414
/*
15-
* ctl.h -- internal declaration of statistics and control related structures
15+
* ctl_internal.h -- internal declaration of statistics and control related structures
1616
*/
1717

18-
#ifndef UMF_CTL_H
19-
#define UMF_CTL_H 1
18+
#ifndef UMF_CTL_INTERNAL_H
19+
#define UMF_CTL_INTERNAL_H 1
2020

2121
#include <errno.h>
2222
#include <stddef.h>
@@ -245,4 +245,4 @@ umf_result_t ctl_query(struct ctl *ctl, void *ctx,
245245
}
246246
#endif
247247

248-
#endif
248+
#endif /* UMF_CTL_INTERNAL_H */

src/pool/pool_scalable_internal.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,9 @@
77
*
88
*/
99

10+
#ifndef UMF_POOL_SCALABLE_INTERNAL_H
11+
#define UMF_POOL_SCALABLE_INTERNAL_H 1
12+
1013
void fini_tbb_global_state(void);
14+
15+
#endif /* UMF_POOL_SCALABLE_INTERNAL_H */

src/provider/provider_ctl_stats_impl.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,5 @@ static inline void provider_ctl_stats_free(CTL_PROVIDER_TYPE *provider,
106106
#ifdef __cplusplus
107107
}
108108
#endif
109-
#endif
109+
110+
#endif /* UMF_PROVIDER_CTL_STATS_IMPL_H */

src/provider/provider_ctl_stats_type.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ typedef struct ctl_stats_t {
2222
#ifdef __cplusplus
2323
}
2424
#endif
25-
#endif
25+
26+
#endif /* UMF_PROVIDER_CTL_STATS_TYPE_H */

src/provider/provider_cuda_internal.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,9 @@
77
*
88
*/
99

10+
#ifndef UMF_CUDA_PROVIDER_INTERNAL_H
11+
#define UMF_CUDA_PROVIDER_INTERNAL_H 1
12+
1013
void fini_cu_global_state(void);
14+
15+
#endif /* UMF_CUDA_PROVIDER_INTERNAL_H */

src/provider/provider_level_zero_internal.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,9 @@
77
*
88
*/
99

10+
#ifndef UMF_LEVEL_ZERO_PROVIDER_INTERNAL_H
11+
#define UMF_LEVEL_ZERO_PROVIDER_INTERNAL_H 1
12+
1013
void fini_ze_global_state(void);
14+
15+
#endif /* UMF_LEVEL_ZERO_PROVIDER_INTERNAL_H */

0 commit comments

Comments
 (0)