[Openmp-commits] [openmp] e57f8ad - [LIBOMPTARGET]Call GetLaneId function, do not use its address in debug
Alexey Bataev via Openmp-commits
openmp-commits at lists.llvm.org
Fri Nov 1 06:44:07 PDT 2019
Author: Alexey Bataev
Date: 2019-11-01T09:43:47-04:00
New Revision: e57f8ad9148d5bdf85c33fb14f2a508ce37a1130
URL: https://github.com/llvm/llvm-project/commit/e57f8ad9148d5bdf85c33fb14f2a508ce37a1130
DIFF: https://github.com/llvm/llvm-project/commit/e57f8ad9148d5bdf85c33fb14f2a508ce37a1130.diff
LOG: [LIBOMPTARGET]Call GetLaneId function, do not use its address in debug
log functions.
Added:
Modified:
openmp/libomptarget/deviceRTLs/nvptx/src/debug.h
Removed:
################################################################################
diff --git a/openmp/libomptarget/deviceRTLs/nvptx/src/debug.h b/openmp/libomptarget/deviceRTLs/nvptx/src/debug.h
index 1f6605790ef8..3388b04616f4 100644
--- a/openmp/libomptarget/deviceRTLs/nvptx/src/debug.h
+++ b/openmp/libomptarget/deviceRTLs/nvptx/src/debug.h
@@ -133,7 +133,7 @@
template <typename... Arguments>
NOINLINE static void log(const char *fmt, Arguments... parameters) {
printf(fmt, (int)GetBlockIdInKernel(), (int)GetThreadIdInBlock(),
- (int)GetWarpId(), (int)GetLaneId, parameters...);
+ (int)GetWarpId(), (int)GetLaneId(), parameters...);
}
#endif
@@ -145,7 +145,7 @@ NOINLINE static void check(bool cond, const char *fmt,
Arguments... parameters) {
if (!cond)
printf(fmt, (int)GetBlockIdInKernel(), (int)GetThreadIdInBlock(),
- (int)GetWarpId(), (int)GetLaneId, parameters...);
+ (int)GetWarpId(), (int)GetLaneId(), parameters...);
assert(cond);
}
More information about the Openmp-commits
mailing list