[Openmp-commits] [PATCH] D44254: [OpenMP][libomptarget] Fix union.
Gheorghe-Teodor Bercea via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Thu Mar 8 08:48:30 PST 2018
gtbercea updated this revision to Diff 137586.
gtbercea added a comment.
Update.
Repository:
rOMP OpenMP
https://reviews.llvm.org/D44254
Files:
libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h
libomptarget/deviceRTLs/nvptx/src/omptarget-nvptxi.h
Index: libomptarget/deviceRTLs/nvptx/src/omptarget-nvptxi.h
===================================================================
--- libomptarget/deviceRTLs/nvptx/src/omptarget-nvptxi.h
+++ libomptarget/deviceRTLs/nvptx/src/omptarget-nvptxi.h
@@ -68,8 +68,8 @@
INLINE void omptarget_nvptx_TaskDescr::CopyData(
omptarget_nvptx_TaskDescr *sourceTaskDescr) {
- data.vect[0] = sourceTaskDescr->data.vect[0];
- data.vect[1] = sourceTaskDescr->data.vect[1];
+ for (int i=0; i<9; i++)
+ data.vect[i] = sourceTaskDescr->data.vect[i];
}
INLINE void
Index: libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h
===================================================================
--- libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h
+++ libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h
@@ -161,7 +161,7 @@
static const uint8_t TaskDescr_InParL2P = 0x40;
union { // both have same size
- uint64_t vect[2];
+ uint16_t vect[9];
struct TaskDescr_items {
uint8_t flags; // 6 bit used (see flag above)
uint8_t unused;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44254.137586.patch
Type: text/x-patch
Size: 1055 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20180308/74355681/attachment.bin>
More information about the Openmp-commits
mailing list