[all-commits] [llvm/llvm-project] 24828c: [libc] Efficiently implement `aligned_alloc` for A...
Joseph Huber via All-commits
all-commits at lists.llvm.org
Wed Jul 2 07:26:19 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 24828c8c45d7f258159afca251aa853a5fc59150
https://github.com/llvm/llvm-project/commit/24828c8c45d7f258159afca251aa853a5fc59150
Author: Joseph Huber <huberjn at outlook.com>
Date: 2025-07-02 (Wed, 02 Jul 2025)
Changed paths:
M libc/src/__support/GPU/allocator.cpp
M libc/src/__support/GPU/allocator.h
M libc/src/stdlib/gpu/aligned_alloc.cpp
M libc/test/integration/src/stdlib/gpu/CMakeLists.txt
A libc/test/integration/src/stdlib/gpu/aligned_alloc.cpp
Log Message:
-----------
[libc] Efficiently implement `aligned_alloc` for AMDGPU (#146585)
Summary:
This patch uses the actual allocator interface to implement
`aligned_alloc`. We do this by simply rounding up the amount allocated.
Because of how index calculation works, any offset within an allocated
pointer will still map to the same chunk, so we can just adjust
internally and it will free all the same.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list