The Gaudi Framework  v31r0 (aeb156f0)
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 9 of file prepareBenchmark.py.

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 

Variable Documentation

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

Definition at line 33 of file prepareBenchmark.py.

int prepareBenchmark.n_threads = 10

Definition at line 30 of file prepareBenchmark.py.