FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
unified-memory-framework/src/memory_pool_internal.h at main · oneapi-src/unified-memory-framework · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
oneapi-src
/
unified-memory-framework
Public
Notifications
You must be signed in to change notification settings
Fork
48
Star
96
Code
Issues
54
Pull requests
7
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
unified-memory-framework
/
src
/
memory_pool_internal.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
56 lines (42 loc) · 1.13 KB
Breadcrumbs
unified-memory-framework
/
src
/
memory_pool_internal.h
Copy path
File metadata and controls
56 lines (42 loc) · 1.13 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
*
* Copyright (C) 2023-2025 Intel Corporation
*
* Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*
*/
#ifndef
UMF_MEMORY_POOL_INTERNAL_H
#define
UMF_MEMORY_POOL_INTERNAL_H
1
#include
<umf/base.h>
#include
<umf/memory_pool.h>
#include
<umf/memory_pool_ops.h>
#include
<umf/memory_provider.h>
#include
<stdbool.h>
#ifdef
__cplusplus
extern
"C"
{
#endif
#include
"base_alloc.h"
#include
"ctl/ctl_internal.h"
#include
"utils_concurrency.h"
typedef
struct
umf_pool_stats
{
size_t
alloc_count
;
}
umf_pool_stats_t
;
typedef
struct
umf_memory_pool_t
{
void
*
pool_priv
;
umf_pool_create_flags_t
flags
;
// Memory provider used by the pool.
umf_memory_provider_handle_t
provider
;
utils_mutex_t
lock
;
void
*
tag
;
// Memory pool statistics
umf_pool_stats_t
stats
;
// ops should be the last due to possible change size in the future
umf_memory_pool_ops_t
ops
;
}
umf_memory_pool_t
;
extern
umf_ctl_node_t
CTL_NODE
(
pool
)[];
void
umfPoolCtlDefaultsDestroy
(
void
);
#ifdef
__cplusplus
}
#endif
#endif
/* UMF_MEMORY_POOL_INTERNAL_H */
Back
|
FazBrowse Home
|
New Git URL