Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MPI-BugBench
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
High Performance Computing - Public
MPI-BugBench
Commits
734945c9
Commit
734945c9
authored
1 year ago
by
Jammer, Tim
Browse files
Options
Downloads
Patches
Plain Diff
added ability for Generator to filter for MPI version
parent
00ff72f7
Branches
Branches containing commit
No related tags found
1 merge request
!5
more work on infrastructure III
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/Infrastructure/GeneratorManager.py
+13
-9
13 additions, 9 deletions
scripts/Infrastructure/GeneratorManager.py
with
13 additions
and
9 deletions
scripts/Infrastructure/GeneratorManager.py
+
13
−
9
View file @
734945c9
...
...
@@ -42,7 +42,7 @@ class GeneratorManager:
return
case_name
+
"
-
"
+
str
(
num
).
zfill
(
digits_to_use
)
+
suffix
def
generate
(
self
,
outpath
,
filterlist_
=
None
,
print_progress_bar
=
True
,
overwrite
=
True
,
generate_full_set
=
False
,
try_compile
=
False
):
try_compile
=
False
,
max_mpi_version
=
4.0
):
filterlist
=
filterlist_
if
filterlist
is
None
:
filterlist
=
featurelist
...
...
@@ -84,11 +84,14 @@ class GeneratorManager:
case_name
=
result_error
.
get_short_descr
()
fname
=
self
.
get_filename
(
case_name
)
full_name
=
os
.
path
.
join
(
outpath
,
fname
)
if
not
float
(
result_error
.
get_version
())
>
float
(
max_mpi_version
):
if
not
overwrite
and
os
.
path
.
isfile
(
full_name
):
assert
False
and
"
File Already exists
"
with
open
(
full_name
,
"
w
"
)
as
text_file
:
text_file
.
write
(
str
(
result_error
))
++
cases_generated
if
try_compile
:
subprocess
.
check_call
([
mpicc
,
full_name
])
...
...
@@ -97,12 +100,13 @@ class GeneratorManager:
# ignore a corect case
pass
++
cases_generated
if
print_progress_bar
:
progress_bar
.
update
(
1
)
if
print_progress_bar
:
progress_bar
.
close
()
print
(
"
Finished. Generated %i cases
"
%
cases_generated
)
pass
def
discover_generators
(
self
,
path
,
print_discovery
=
True
,
skip_invalid
=
False
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment