Skip to content

Commit 316a563

Browse files
committed
Rename weak_parallel to weak_threaded
1 parent df1dd2b commit 316a563

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

docs/command-line-options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The Extra-P command line interface has the following options.
1818
| `--talpas` | Load data from Talpas data format |
1919
| `--text` | Load data from text input file |
2020
| `--experiment` | Load Extra-P experiment and generate new models |
21-
| `--scaling` {`weak`, `weak_parallel`, `strong`} | Set scaling type when loading data from per-thread/per-rank files (CUBE files) (default: weak) |
21+
| `--scaling` {`weak`, `weak_threaded`, `strong`} | Set scaling type when loading data from per-thread/per-rank files (CUBE files) (default: weak) |
2222
| --keep-values | Keeps the original values after import |
2323
| **Modeling options** | |
2424
| `--median` | Use median values for computation instead of mean values |

extrap/entities/scaling_type.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
class ScalingType(Enum):
1212
WEAK = "weak"
13-
WEAK_PARALLEL = "weak_parallel"
13+
WEAK_THREADED = "weak_threaded"
1414
STRONG = "strong"
1515

1616
def __str__(self):

extrap/fileio/file_reader/cube_file_reader2.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def _aggregate_repetitions_legacy(self, point_group, progress_bar, show_warning_
153153
cnode_values = metric_values.cnode_values(r_cnode, convert_to_inclusive=True)
154154
if self.scaling_type == ScalingType.WEAK:
155155
total_values[callpaths[r_cnode.id]].extend(map(float, cnode_values))
156-
elif self.scaling_type == ScalingType.WEAK_PARALLEL:
156+
elif self.scaling_type == ScalingType.WEAK_THREADED:
157157
values = [v for v in map(float, cnode_values) if v != 0]
158158
if not values:
159159
values = map(float, cnode_values)
@@ -175,7 +175,7 @@ def _aggregate_repetitions_legacy(self, point_group, progress_bar, show_warning_
175175
if self.scaling_type == ScalingType.WEAK:
176176
# do NOT use generator it is slower
177177
aggregated_values[(callpath, metric)].extend(map(float, cnode_values))
178-
elif self.scaling_type == ScalingType.WEAK_PARALLEL:
178+
elif self.scaling_type == ScalingType.WEAK_THREADED:
179179
values = [v for v in map(float, cnode_values) if v != 0]
180180
if not values:
181181
values = map(float, cnode_values)
@@ -218,7 +218,7 @@ def _aggregate_repetitions(self, point_group, progress_bar, show_warning_skipped
218218
cnode_values = metric_values.cnode_values(r_cnode, convert_to_inclusive=True)
219219
if self.scaling_type == ScalingType.WEAK:
220220
total_values[callpaths[r_cnode.id]].append(cnode_values.astype(float))
221-
elif self.scaling_type == ScalingType.WEAK_PARALLEL:
221+
elif self.scaling_type == ScalingType.WEAK_THREADED:
222222
values = cnode_values.astype(float)
223223
non_zero_value_mask = values != 0
224224
masked_array = ma.array(values, mask=non_zero_value_mask)
@@ -239,7 +239,7 @@ def _aggregate_repetitions(self, point_group, progress_bar, show_warning_skipped
239239
# in case of weak scaling calculate mean and median over all mpi process values
240240
if self.scaling_type == ScalingType.WEAK:
241241
aggregated_values[(callpath, metric)].append(cnode_values.astype(float))
242-
elif self.scaling_type == ScalingType.WEAK_PARALLEL:
242+
elif self.scaling_type == ScalingType.WEAK_THREADED:
243243
values = cnode_values.astype(float)
244244
non_zero_value_mask = values != 0
245245
aggregated_values[(callpath, metric)].append(ma.array(values, mask=non_zero_value_mask))

0 commit comments

Comments
 (0)