| The Gaudi Framework v30r0 (c919700c)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Namespace List
- Namespace Members

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
| config

## Function Documentation

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

## Variable Documentation

prepareBenchmark.config

Initial value:
1 = prepareConfig("../options/BrunelScenario.py", n_threads=n_threads,
2 n_parallel_events=n_events, 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 29 of file prepareBenchmark.py.

int prepareBenchmark.n_threads = 10

Definition at line 26 of file prepareBenchmark.py.