aboutsummaryrefslogtreecommitdiff
path: root/libomptarget/deviceRTLs/nvptx/src/libcall.cu
diff options
context:
space:
mode:
authorGuansong Zhang <zhang.guansong@gmail.com>2018-04-26 14:06:53 +0000
committerGuansong Zhang <zhang.guansong@gmail.com>2018-04-26 14:06:53 +0000
commit6d77774d1aca821bbba59da9309925b5309d2be5 (patch)
tree6f1eae3b2d8b992c02ddccb0b5f2e85c3a3a87d2 /libomptarget/deviceRTLs/nvptx/src/libcall.cu
parent3ffebffa075b230a73563b213b7b08a49fe32da9 (diff)
[OpenMP] Remove compilation warning when using clang to compile bc files.
Summary: Minor printf format correction. NVCC ignore those. Clang will give warning on these if debug is enabled. Reviewers: grokos Reviewed By: grokos Subscribers: openmp-commits Tags: #openmp Differential Revision: https://reviews.llvm.org/D45528 git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@330944 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'libomptarget/deviceRTLs/nvptx/src/libcall.cu')
-rw-r--r--libomptarget/deviceRTLs/nvptx/src/libcall.cu6
1 files changed, 3 insertions, 3 deletions
diff --git a/libomptarget/deviceRTLs/nvptx/src/libcall.cu b/libomptarget/deviceRTLs/nvptx/src/libcall.cu
index 7ae4262..15040db 100644
--- a/libomptarget/deviceRTLs/nvptx/src/libcall.cu
+++ b/libomptarget/deviceRTLs/nvptx/src/libcall.cu
@@ -55,7 +55,7 @@ EXTERN int omp_get_max_threads(void) {
rc = GetNumberOfProcsInTeam();
ASSERT0(LT_FUSSY, rc >= 0, "bad number of threads");
}
- PRINT(LD_IO, "call omp_get_max_threads() return %\n", rc);
+ PRINT(LD_IO, "call omp_get_max_threads() return %d\n", rc);
return rc;
}
@@ -192,7 +192,7 @@ EXTERN int omp_get_ancestor_thread_num(int level) {
omp_sched_t sched = currTaskDescr->GetRuntimeSched();
PRINT(LD_ALL,
"task descr %s %d: %s, in par %d, dyn %d, rt sched %d,"
- " chunk %lld; tid %d, tnum %d, nthreads %d\n",
+ " chunk %" PRIu64 "; tid %d, tnum %d, nthreads %d\n",
"ancestor", steps,
(currTaskDescr->IsParallelConstruct() ? "par" : "task"),
currTaskDescr->InParallelRegion(), currTaskDescr->IsDynamic(),
@@ -261,7 +261,7 @@ EXTERN void omp_set_schedule(omp_sched_t kind, int modifier) {
omptarget_nvptx_TaskDescr *currTaskDescr = getMyTopTaskDescriptor();
currTaskDescr->SetRuntimeSched(kind);
currTaskDescr->RuntimeChunkSize() = modifier;
- PRINT(LD_IOD, "omp_set_schedule did set sched %d & modif %d\n",
+ PRINT(LD_IOD, "omp_set_schedule did set sched %d & modif %" PRIu64 "\n",
(int)currTaskDescr->GetRuntimeSched(),
currTaskDescr->RuntimeChunkSize());
}