Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jerrrrry
infinicore
Commits
c8a11a6a
Unverified
Commit
c8a11a6a
authored
Dec 26, 2025
by
thatPepe
Committed by
GitHub
Dec 26, 2025
Browse files
Merge pull request #857 from InfiniTensor/issue/809
issue/809 add more size classes
parents
b92a7d88
53ad5ac9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/infinicore/context/allocators/pinnable_block_allocator.cc
...infinicore/context/allocators/pinnable_block_allocator.cc
+5
-0
No files found.
src/infinicore/context/allocators/pinnable_block_allocator.cc
View file @
c8a11a6a
...
...
@@ -19,11 +19,16 @@ inline size_t align_up(size_t size, size_t alignment) {
PinnableBlockAllocator
::
PinnableBlockAllocator
(
Device
device
)
:
device_
(
device
)
{
size_classes_
=
{
{
32
*
1024
,
{}},
// 32 KB
{
256
*
1024
,
{}},
// 256 KB
{
1
*
1024
*
1024
,
{}},
// 1 MB
{
2
*
1024
*
1024
,
{}},
// 2 MB
{
4
*
1024
*
1024
,
{}},
// 4 MB
{
8
*
1024
*
1024
,
{}},
// 8 MB
{
16
*
1024
*
1024
,
{}},
// 16 MB
{
32
*
1024
*
1024
,
{}},
// 32 MB
{
64
*
1024
*
1024
,
{}},
// 64 MB
{
128
*
1024
*
1024
,
{}},
// 128 MB
{
256
*
1024
*
1024
,
{}},
// 256 MB
};
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment