[Openmp-commits] [PATCH] D133128: [libomptarget] Enable the device allocator for AMDGPU
Joseph Huber via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Thu Sep 1 10:41:17 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rGf8b1f93f268a: [libomptarget] Enable the device allocator for AMDGPU (authored by jhuber6).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133128/new/
https://reviews.llvm.org/D133128
Files:
openmp/libomptarget/plugins/amdgpu/src/rtl.cpp
openmp/libomptarget/test/api/omp_device_memory.c
Index: openmp/libomptarget/test/api/omp_device_memory.c
===================================================================
--- openmp/libomptarget/test/api/omp_device_memory.c
+++ openmp/libomptarget/test/api/omp_device_memory.c
@@ -1,5 +1,4 @@
-// RUN: %libomptarget-compile-run-and-check-nvptx64-nvidia-cuda
-// REQUIRES: nvptx64-nvidia-cuda
+// RUN: %libomptarget-compile-run-and-check-generic
#include <omp.h>
#include <stdio.h>
Index: openmp/libomptarget/plugins/amdgpu/src/rtl.cpp
===================================================================
--- openmp/libomptarget/plugins/amdgpu/src/rtl.cpp
+++ openmp/libomptarget/plugins/amdgpu/src/rtl.cpp
@@ -2623,6 +2623,7 @@
hsa_amd_memory_pool_t MemoryPool;
switch (Kind) {
case TARGET_ALLOC_DEFAULT:
+ case TARGET_ALLOC_DEVICE:
// GPU memory
MemoryPool = DeviceInfo().getDeviceMemoryPool(DeviceId);
break;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133128.457323.patch
Type: text/x-patch
Size: 892 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20220901/a113373d/attachment.bin>
More information about the Openmp-commits
mailing list