aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/benchmark_examples/RunExample.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/benchmark_examples/RunExample.cpp b/tests/benchmark_examples/RunExample.cpp
index dea9d9b2e3..7ec6217d19 100644
--- a/tests/benchmark_examples/RunExample.cpp
+++ b/tests/benchmark_examples/RunExample.cpp
@@ -88,6 +88,10 @@ int run_example(int argc, char **argv, Example &example)
{
example_argv.emplace_back(const_cast<char *>(arg.c_str())); // NOLINT
}
+
+ // Set number of threads in Scheduler
+ Scheduler::get().set_num_threads(options.threads->value());
+
// We need to do the setup here because framework.init() will need CL / GLES to be initialised
try
{
@@ -112,8 +116,6 @@ int run_example(int argc, char **argv, Example &example)
return 1;
}
- Scheduler::get().set_num_threads(options.threads->value());
-
if(options.log_level->value() > framework::LogLevel::NONE)
{
for(auto &p : printers)