[LIBOMPTARGET]Call GetLaneId function, do not use its address in debug

log functions.
This commit is contained in:
Alexey Bataev 2019-11-01 09:42:46 -04:00
parent 6e217ba3ea
commit e57f8ad914
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}