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
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
c4407ac8
Commit
c4407ac8
authored
1 year ago
by
Jammer, Tim
Browse files
Options
Downloads
Patches
Plain Diff
Simplified InvalidBuf case
parent
cfc7d277
No related branches found
No related tags found
1 merge request
!14
Infrastructure: Remove Instructionblock
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
scripts/Infrastructure/Template.py
+1
-1
1 addition, 1 deletion
scripts/Infrastructure/Template.py
scripts/Infrastructure/TemplateFactory.py
+15
-0
15 additions, 0 deletions
scripts/Infrastructure/TemplateFactory.py
scripts/main.py
+2
-2
2 additions, 2 deletions
scripts/main.py
with
18 additions
and
3 deletions
scripts/Infrastructure/Template.py
+
1
−
1
View file @
c4407ac8
...
@@ -381,7 +381,7 @@ class TemplateManager:
...
@@ -381,7 +381,7 @@ class TemplateManager:
old_instruction
=
[
old_instruction
]
old_instruction
=
[
old_instruction
]
idxs_to_replace
=
self
.
__get_instruction_index
(
old_instruction
)
idxs_to_replace
=
self
.
__get_instruction_index
(
old_instruction
)
if
len
(
idxs_to_replace
)
=
=
len
(
new_instruction_list
):
if
len
(
idxs_to_replace
)
!
=
len
(
new_instruction_list
):
raise
ValueError
(
"
Number of instructions to Replace does not match number of given instructions
"
)
raise
ValueError
(
"
Number of instructions to Replace does not match number of given instructions
"
)
for
(
index
,
replacement
)
in
zip
(
idxs_to_replace
,
new_instruction_list
):
for
(
index
,
replacement
)
in
zip
(
idxs_to_replace
,
new_instruction_list
):
...
...
This diff is collapsed.
Click to expand it.
scripts/Infrastructure/TemplateFactory.py
+
15
−
0
View file @
c4407ac8
...
@@ -159,6 +159,21 @@ def get_send_recv_template(send_func: str = "mpi_isend", recv_func: str | typing
...
@@ -159,6 +159,21 @@ def get_send_recv_template(send_func: str = "mpi_isend", recv_func: str | typing
return
tm
return
tm
def
get_invalid_param_p2p_case
(
param
,
value
,
check_receive
,
send_func
,
recv_func
):
tm
=
get_send_recv_template
(
send_func
,
recv_func
)
rank
=
1
if
check_receive
:
rank
=
0
for
call
in
tm
.
get_instruction
(
identifier
=
"
MPICALL
"
,
return_list
=
True
):
if
call
.
get_rank_executing
()
==
rank
:
assert
call
.
has_arg
(
param
)
call
.
set_arg
(
param
,
value
)
return
tm
def
get_collective_template
(
collective_func
,
seperate
=
True
):
def
get_collective_template
(
collective_func
,
seperate
=
True
):
"""
"""
Contructs a default template for the given mpi collecive
Contructs a default template for the given mpi collecive
...
...
This diff is collapsed.
Click to expand it.
scripts/main.py
+
2
−
2
View file @
c4407ac8
...
@@ -6,8 +6,8 @@ from scripts.Infrastructure.GeneratorManager import GeneratorManager
...
@@ -6,8 +6,8 @@ from scripts.Infrastructure.GeneratorManager import GeneratorManager
if
__name__
==
"
__main__
"
:
if
__name__
==
"
__main__
"
:
gencodes_dir
=
"
../gencodes/
"
gencodes_dir
=
"
../gencodes/
"
gm
=
GeneratorManager
(
"
./errors
"
)
#
gm = GeneratorManager("./errors")
#
gm = GeneratorManager("./errors/devel")
gm
=
GeneratorManager
(
"
./errors/devel
"
)
# remove all testcases from previous execution (ease of debugging)
# remove all testcases from previous execution (ease of debugging)
for
root
,
dirs
,
files
in
os
.
walk
(
gencodes_dir
):
for
root
,
dirs
,
files
in
os
.
walk
(
gencodes_dir
):
...
...
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