Skip to content

Commit a7dd636

Browse files
committed
fmt
1 parent 26e2bc3 commit a7dd636

2 files changed

Lines changed: 6 additions & 8 deletions

File tree

include/perf/benchmarking.hpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,8 @@ ThroughputContainerType throughput(Function&& func, Args&&... args) {
6868

6969
template <class Function, typename... Args>
7070
double throughput_omp(Function&& func, Args&&... args) {
71-
return 1 /
72-
elapsed_time_omp(std::forward<Function>(func),
73-
std::forward<Args>(args)...);
71+
return 1 / elapsed_time_omp(std::forward<Function>(func),
72+
std::forward<Args>(args)...);
7473
}
7574

7675
template <typename ThroughputContainerType, typename DurationType,
@@ -84,9 +83,8 @@ ThroughputContainerType throughput_avg(const size_t iters, Function&& func,
8483

8584
template <class Function, typename... Args>
8685
double throughput_omp_avg(const size_t iters, Function&& func, Args&&... args) {
87-
return 1 /
88-
elapsed_time_omp_avg(iters, std::forward<Function>(func),
89-
std::forward<Args>(args)...);
86+
return 1 / elapsed_time_omp_avg(iters, std::forward<Function>(func),
87+
std::forward<Args>(args)...);
9088
}
9189

9290
// as "Manhattan" norm of error-vector

src/Weights_Reader/reader_weights.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ json read_json(const std::string& filename) {
4444
return result;
4545

4646
#else
47-
int fd = open(filename.c_str(),
48-
O_RDONLY); // NOLINT(cppcoreguidelines-pro-type-vararg)
47+
// NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg)
48+
int fd = open(filename.c_str(), O_RDONLY);
4949
if (fd == -1) {
5050
throw std::runtime_error("Cannot open file: " + filename);
5151
}

0 commit comments

Comments
 (0)