Tools for algorithm engineering.
Get the number of currently running threads.
Number of threads.
int
Get the current log level.
The current loglevel.
logLevel
Get the maximum number of available threads
Max number of threads.
int
Set the current loglevel
loglevel (str) – The new loglevel. Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL, QUIET
Set the number of OpenMP threads
nThreads (int) – Number of threads.
Switch locations in log statements on or off
flag (bool) – Sets whether to also log file, function and line of code. Default: False.
Set the random seed that is used in NetworKit.
Note that there is a separate random number generator per thread.
seed (int) – The seed
useThreadId (bool) – If the thread id shall be added to the seed
Evaluate strong scaling, i.e. how the performance varies with the number of threads for a fixed input size.
Note
Algorithm is executed by calling algorithmClass(**inargs)
. See parameter for more details.
algorithmClass – Algorithm, which should be tested.
threadSequence (list(int)) – A list of thread numbers to run the algorithmClass
with.
inargs (**kwargs) – Input arguments for algorithm.
inputTitle (str, optional) – Set a title for the output. Default: None
repetitions (int, optional) – Number of repetitions. Default: 1
outPath (str, optional) – File for writing the output to. Default: None
Evaluate weak scaling, i.e. how the performance varies with the number of threads for a fixed input size per processor.
Note
Algorithm is executed by calling algorithmClass(input, **inargs)
. See parameter for more details.
algorithmClass – Algorithm, which should be tested.
inargs (**kwargs) – Input arguments for algorithm.
threadSequence (list(int)) – A list of thread numbers to run the algorithmClass
with.
inputSequence (list(networkit.Graph)) – A list of graphs. The input algorithm is evaluated against every list-member.
inputTitles (str, optional) – Set a title for the output. Default: None
repetitions (int, optional) – Number of repetitions. Default: 1
outPath (str, optional) – File for writing the output to. Default: None