Skip to content

Commit

Permalink
Merge pull request #37 from george0st/changes
Browse files Browse the repository at this point in the history
Remove duplicit path & tune doc
  • Loading branch information
george0st authored Sep 21, 2024
2 parents d436f8c + 338c459 commit 2209820
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion qgate_perf/executor_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class GraphScope(Flag):
all = perf | exe # generation of performance and executor graph

class ExecutorHelper:
""" Predefines values for setting of executor lists with pattern [[processes, threads, label], ..] """
""" Predefines values for setting of executor lists with pattern [[processes, threads, label], ...] """

PROCESS_8_32_THREAD_2_4 = [[8, 2, '2x thread'], [16, 2, '2x thread'], [32, 2, '2x thread'],
[8, 4, '4x thread'], [16, 4, '4x thread'], [32, 4, '4x thread']]
Expand Down Expand Up @@ -73,6 +73,7 @@ def grow_thread(label_thread=True, process=2, thread_pow_start=1, thread_pow_sto
Generate sequence of executors, number of processes are stable, and
number of thread grow from 2^thread_pow_start to 2^thread_pow_stop
:param label_thread: label for executors
:param process: stable number of processes
:param thread_pow_start: start number of thread from 2^thread_pow_start
:param thread_pow_stop: stop number of thread to 2^thread_pow_stop
Expand All @@ -91,6 +92,7 @@ def grow_process(label_process=True, thread=2, process_pow_start=1, process_pow_
Generate sequence of executors, number of threads are stable, and
number of thread grow from 2^process_pow_start to 2^process_pow_stop
:param label_process: label for executors
:param thread: stable number of threads
:param process_pow_start: start number of process from 2^process_pow_start
:param process_pow_stop: stop number of thread to 2^process_pow_stop
Expand Down
4 changes: 2 additions & 2 deletions qgate_perf/parallel_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ def create_graph_perf(self, output_graph_dir="output", picture_dpi=100, suppress
:return: list of generated files
"""
return ParallelExecutor.create_graph_static(self._output_file,
os.path.join(output_graph_dir,"graph-perf"),
output_graph_dir,
GraphScope.perf,
picture_dpi,
suppress_error)
Expand All @@ -540,7 +540,7 @@ def create_graph_exec(self, output_graph_dir="output", picture_dpi=100, suppress
:return: list of generated files
"""
return ParallelExecutor.create_graph_static(self._output_file,
os.path.join(output_graph_dir,"graph-exec"),
output_graph_dir,
GraphScope.exe,
picture_dpi,
suppress_error)
2 changes: 1 addition & 1 deletion qgate_perf/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Store the version here so:

__version__ = '0.4.20'
__version__ = '0.4.21'

0 comments on commit 2209820

Please sign in to comment.