[Openmp-commits] [PATCH] D70971: [libomptarget] Build a minimal deviceRTL for amdgcn
Alexey Bataev via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Tue Dec 3 10:52:07 PST 2019
ABataev added a comment.
It builds, but I have questions about this patch
================
Comment at: openmp/libomptarget/deviceRTLs/amdgcn/CMakeLists.txt:16-18
+ $ENV{HOME}/rocm/aomp
+ /opt/rocm/aomp
+ /usr/lib/rocm/aomp
----------------
We can't build the runtime with regular clang?
================
Comment at: openmp/libomptarget/deviceRTLs/amdgcn/src/device_environment.h:18-26
+struct omptarget_device_environmentTy {
+ int32_t debug_level; // gets value of envvar LIBOMPTARGET_DEVICE_RTL_DEBUG
+ // only useful for Debug build of deviceRTLs
+ int32_t num_devices; // gets number of active offload devices
+ int32_t device_num; // gets a value 0 to num_devices-1
+};
+
----------------
Agan this thing. Can we make it common if it is really required? Again, why do we need these new fields? Could you remove it from the current patch?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D70971/new/
https://reviews.llvm.org/D70971
More information about the Openmp-commits
mailing list