[all-commits] [llvm/llvm-project] 74d23f: [OpenMP] Implement 'omp_alloc' on the device (#102...
Joseph Huber via All-commits
all-commits at lists.llvm.org
Wed Aug 14 11:39:17 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 74d23f15b6867898892f851db40a25f62dad4397
https://github.com/llvm/llvm-project/commit/74d23f15b6867898892f851db40a25f62dad4397
Author: Joseph Huber <huberjn at outlook.com>
Date: 2024-08-14 (Wed, 14 Aug 2024)
Changed paths:
M offload/DeviceRTL/include/Allocator.h
M offload/DeviceRTL/include/Types.h
M offload/DeviceRTL/src/Misc.cpp
M offload/DeviceRTL/src/State.cpp
A offload/test/api/omp_device_alloc.c
M openmp/docs/design/Runtimes.rst
Log Message:
-----------
[OpenMP] Implement 'omp_alloc' on the device (#102526)
Summary:
The 'omp_alloc' function should be callable from a target region. This
patch implemets it by simply calling `malloc` for every non-default
trait value allocator. All the special access modifiers are
unimplemented and return null. The null allocator returns null as the
spec states it should not be usable from the target.
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