Skip to content

Commit

Permalink
pushing after running with clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
colleeneb committed Oct 15, 2024
1 parent 50d792c commit a994986
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
#include <string>
#include <vector>

#include <algorithm>
#include <fstream>
#include <sstream>
#include <functional>
#include <algorithm>
#include <iostream>
#include <sstream>
#include <unordered_map>

#include "bude.h"
Expand All @@ -27,8 +27,7 @@
#endif

#ifndef MINIBUDE_COMPILE_COMMANDS
#define MINIBUDE_COMPILE_COMMANDS \
{ MINIBUDE_WARN_NOT_CMAKE }
#define MINIBUDE_COMPILE_COMMANDS {MINIBUDE_WARN_NOT_CMAKE}
#endif

#ifdef USE_CPU_FEATURES
Expand Down Expand Up @@ -388,15 +387,12 @@ std::pair<double, std::vector<size_t>> validate(const Sample &sample, const Para
}
// flush at the end to make sure errors are clumped together
std::cerr << std::flush;
return {valid, maxDiffPct, s, SummaryStats<double>({ std::numeric_limits<double>::max() }), 0, 0, 0};
}
else if( !valid)
return {valid, maxDiffPct, s, SummaryStats<double>({ std::numeric_limits<double>::max() }), 0, 0, 0};
return {valid, maxDiffPct, s, SummaryStats<double>({std::numeric_limits<double>::max()}), 0, 0, 0};
} else if (!valid)
return {valid, maxDiffPct, s, SummaryStats<double>({std::numeric_limits<double>::max()}), 0, 0, 0};
else {
return {valid, maxDiffPct, s, SummaryStats<double>(msWithoutWarmup), gflops, gfinsts, interactions_per_sec};
}


return {valid, maxDiffPct, s, SummaryStats<double>(msWithoutWarmup), gflops, gfinsts, interactions_per_sec};
}
}

[[nodiscard]] std::pair<int, std::string> selectDevice(const std::string &needle,
Expand Down

0 comments on commit a994986

Please sign in to comment.