Skip to content

Commit

Permalink
Use NUM_REPLICATIONS if available for default
Browse files Browse the repository at this point in the history
  • Loading branch information
Marius Meyer committed Apr 8, 2021
1 parent 336539a commit 5c206e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions shared/include/hpcc_benchmark.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,11 @@ class BaseSettings {
defaultPlatform(results["platform"].as<int>()),
defaultDevice(results["device"].as<int>()),
kernelFileName(results["f"].as<std::string>()),
#ifdef NUM_REPLICATIONS
kernelReplications(results.count("r") > 0 ? results["r"].as<uint>() : NUM_REPLICATIONS),
#else
kernelReplications(results.count("r") > 0 ? results["r"].as<uint>() : 1),
#endif
testOnly(static_cast<bool>(results.count("test"))) {}

/**
Expand Down

0 comments on commit 5c206e7

Please sign in to comment.