aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h
diff options
context:
space:
mode:
authorJohannes Doerfert <johannes@jdoerfert.de>2023-10-21 14:49:30 -0700
committerGitHub <noreply@github.com>2023-10-21 14:49:30 -0700
commitd3921e467005733daa8e63df4b553052c8ec72c1 (patch)
tree66e7aedcca08569165da521b337dc44cf8d35b8c /lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h
parentd571af7f627491841fab7c456f774d7b8f546159 (diff)
downloadllvm-d3921e467005733daa8e63df4b553052c8ec72c1.zip
llvm-d3921e467005733daa8e63df4b553052c8ec72c1.tar.gz
llvm-d3921e467005733daa8e63df4b553052c8ec72c1.tar.bz2
[OpenMP] Basic BumpAllocator for (AMD)GPUs (#69806)
The patch contains a basic BumpAllocator for (AMD)GPUs to allow us to run more tests. The allocator implements `malloc`, both internally and externally, while we continue to default to the NVIDIA `malloc` when we target NVIDIA GPUs. Once we have smarter or customizable allocators we should consider this choice, for now, this allocator is better than none. It traps if it is out of memory, making it easy to debug. Heap size is configured via `LIBOMPTARGET_HEAP_SIZE` and defaults to 512MB. It allows to track allocation statistics via `LIBOMPTARGET_DEVICE_RTL_DEBUG=8` (together with `-fopenmp-target-debug=8`). Two tests were added, and one was enabled. This is the next step towards fixing https://github.com/llvm/llvm-project/issues/66708
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h')
0 files changed, 0 insertions, 0 deletions