diff --git a/examples/collection/do_flops.cc b/examples/collection/do_flops.cc index 12b001da89..4565aad21d 100644 --- a/examples/collection/do_flops.cc +++ b/examples/collection/do_flops.cc @@ -87,7 +87,7 @@ do_flops( int n ) double pi(uint64_t n) { double sum = 0.0; int sign = 1; - for (int i = 0; i < n; ++i) { + for (uint64_t i = 0; i < n; ++i) { sum += sign/(2.0*i+1.0); sign *= -1; } @@ -132,7 +132,7 @@ struct GenericWork : vt::Collection { { } }; - void checkCompleteCB(double normRes) { + void checkCompleteCB() { auto const iter_max_reached = iter_ > maxIter_; if (iter_max_reached) { @@ -160,7 +160,7 @@ struct GenericWork : vt::Collection { auto proxy = this->getCollectionProxy(); proxy.reduce<&GenericWork::checkCompleteCB, vt::collective::MaxOp>( - proxy[0], 0.0 + proxy[0] ); vt::theContext()->getTask()->stopPAPIMetrics(); diff --git a/src/vt/context/runnable_context/papi_data.h b/src/vt/context/runnable_context/papi_data.h index 1e729e1b4a..8e273959d6 100644 --- a/src/vt/context/runnable_context/papi_data.h +++ b/src/vt/context/runnable_context/papi_data.h @@ -67,7 +67,7 @@ struct PAPIData { // check if the environment variable is set if (env_p == nullptr) { - std::cout << "Warning: Environment variabale VT_EVENTS not set, defaulting to instructions for the PAPI event set." << std::endl; + fmt::print("Warning: Environment variabale VT_EVENTS not set, defaulting to instructions for the PAPI event set.\n"); native_events.push_back("instructions"); } else {