| The Gaudi Framework v32r1 (f65d50dc)

Functions | Variables
prepareBenchmark Namespace Reference

## Functions
def | prepareConfig (template_filename, n_threads=10, n_parallel_events=10, n_parallel_algorithms=10)

## Variables
int | n_threads = 10
def | config

## Function Documentation

## ◆ prepareConfig()

def prepareBenchmark.prepareConfig | ( |  | template_filename,
|  |  | n_threads = `10`,
|  |  | n_parallel_events = `10`,
|  |  | n_parallel_algorithms = `10`
| ) |  |

Definition at line 6 of file prepareBenchmark.py.

6 def prepareConfig(template_filename,
7 n_threads=10,
8 n_parallel_events=10,
9 n_parallel_algorithms=10):
10 template = open(template_filename)
11 new_filename = "%s_%i_%i_%i.py" % (template_filename.rstrip(".py"),
12 n_threads, n_parallel_events,
13 n_parallel_algorithms)
14 new_config = open(new_filename, "w")
15 for line in template.readlines():
16 if line.startswith("n_threads"):
17 line = "n_threads = %i\n" % n_threads
18 elif line.startswith("n_parallel_events"):
19 line = "n_parallel_events = %i\n" % n_parallel_events
20 elif line.startswith("n_parallel_algorithms"):
21 line = "n_parallel_algorithms = %i\n" % n_parallel_algorithms
22 new_config.write(line)
23 new_config.close()
24 return new_filename
25
26
prepareBenchmark.prepareConfig
def prepareConfig(template_filename, n_threads=10, n_parallel_events=10, n_parallel_algorithms=10)
Definition: prepareBenchmark.py:6

## Variable Documentation

## ◆ config

def prepareBenchmark.config

Initial value:
1 = prepareConfig(
2 "../options/BrunelScenario.py",
3 n_threads=n_threads,
4 n_parallel_events=n_events,
5 n_parallel_algorithms=n_algos)
prepareBenchmark.prepareConfig
def prepareConfig(template_filename, n_threads=10, n_parallel_events=10, n_parallel_algorithms=10)
Definition: prepareBenchmark.py:6

Definition at line 33 of file prepareBenchmark.py.

## ◆ n_threads

int prepareBenchmark.n_threads = 10

Definition at line 30 of file prepareBenchmark.py.