aboutsummaryrefslogtreecommitdiff
path: root/runtime/src/kmp_stats.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/src/kmp_stats.cpp')
-rw-r--r--runtime/src/kmp_stats.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/runtime/src/kmp_stats.cpp b/runtime/src/kmp_stats.cpp
index 2c0eabef26aa..71f2dd93be79 100644
--- a/runtime/src/kmp_stats.cpp
+++ b/runtime/src/kmp_stats.cpp
@@ -4,10 +4,9 @@
//===----------------------------------------------------------------------===//
//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.txt for details.
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
@@ -547,7 +546,6 @@ static std::string generateFilename(char const *prototype,
// of __kmp_stats_global_output
void kmp_stats_output_module::init() {
- fprintf(stderr, "*** Stats enabled OpenMP* runtime ***\n");
char *statsFileName = getenv("KMP_STATS_FILE");
eventsFileName = getenv("KMP_STATS_EVENTS_FILE");
plotFileName = getenv("KMP_STATS_PLOT_FILE");
@@ -670,9 +668,11 @@ void kmp_stats_output_module::printEvents(FILE *eventsOut,
for (int i = 0; i < theEvents->size(); i++) {
kmp_stats_event ev = theEvents->at(i);
rgb_color color = getEventColor(ev.getTimerName());
- fprintf(eventsOut, "%d %lu %lu %1.1f rgb(%1.1f,%1.1f,%1.1f) %s\n", gtid,
- ev.getStart(), ev.getStop(), 1.2 - (ev.getNestLevel() * 0.2),
- color.r, color.g, color.b, timeStat::name(ev.getTimerName()));
+ fprintf(eventsOut, "%d %llu %llu %1.1f rgb(%1.1f,%1.1f,%1.1f) %s\n", gtid,
+ static_cast<unsigned long long>(ev.getStart()),
+ static_cast<unsigned long long>(ev.getStop()),
+ 1.2 - (ev.getNestLevel() * 0.2), color.r, color.g, color.b,
+ timeStat::name(ev.getTimerName()));
}
return;
}