[Openmp-commits] [llvm] [openmp] [OpenMP] Implement 'omp_alloc' on the device (PR #102526)
Joseph Huber via Openmp-commits
openmp-commits at lists.llvm.org
Mon Aug 12 16:31:08 PDT 2024
================
@@ -128,6 +129,33 @@ double omp_get_wtime(void) { return ompx::impl::getWTime(); }
void *__llvm_omp_indirect_call_lookup(void *HstPtr) {
return ompx::impl::indirectCallLookup(HstPtr);
}
+
+void *omp_alloc(size_t size, omp_allocator_handle_t allocator) {
+ switch (allocator) {
+ case omp_default_mem_alloc:
+ case omp_large_cap_mem_alloc:
----------------
jhuber6 wrote:
Updated
https://github.com/llvm/llvm-project/pull/102526
More information about the Openmp-commits
mailing list