From 043598070d4cb62facfedf59a87adb9e2a3cb7da Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 5 Mar 2019 14:27:35 +0100 Subject: add function to scale thread to available cpus --- src/larson.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/larson.py') diff --git a/src/larson.py b/src/larson.py index 6d15d46..736f00a 100644 --- a/src/larson.py +++ b/src/larson.py @@ -1,4 +1,3 @@ -import multiprocessing import re from src.benchmark import Benchmark @@ -19,7 +18,7 @@ class Benchmark_Larson(Benchmark): self.args = { "maxsize": [8, 32, 64, 128, 256, 512, 1024], - "threads": range(1, multiprocessing.cpu_count() * 2 + 1) + "threads": Benchmark.scale_threads_for_cpus(2) } self.requirements = ["larson"] -- cgit v1.2.3