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
f994cc14
Verified
Commit
f994cc14
authored
Feb 4, 2024
by
Simon Schwitanski
Browse files
Options
Downloads
Patches
Plain Diff
Add default parameters for RMA calls
parent
1747635a
Branches
Branches containing commit
No related tags found
2 merge requests
!9
Infrastructure: Type Hints, Instruction class and lists of instructions
,
!8
Draft: RMA
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/Infrastructure/CorrectParameter.py
+24
-4
24 additions, 4 deletions
scripts/Infrastructure/CorrectParameter.py
with
24 additions
and
4 deletions
scripts/Infrastructure/CorrectParameter.py
+
24
−
4
View file @
f994cc14
...
...
@@ -8,8 +8,10 @@ class CorrectParameterFactory:
# default params
buf_size
=
10
dtype
=
[
'
int
'
,
'
MPI_INT
'
]
buf_size_bytes
=
f
"
{
buf_size
}
*sizeof(
{
dtype
[
0
]
}
)
"
tag
=
0
buf_var_name
=
"
buf
"
winbuf_var_name
=
"
winbuf
"
def
__init__
(
self
):
pass
...
...
@@ -21,13 +23,13 @@ class CorrectParameterFactory:
return
get_free
(
AllocCall
(
self
.
dtype
[
0
],
self
.
buf_size
,
self
.
buf_var_name
,
use_malloc
=
False
))
def
get
(
self
,
param
,
func
=
None
):
if
param
in
[
"
BUFFER
"
,
"
buf
"
,
"
buffer
"
,
"
sendbuf
"
,
"
recvbuf
"
]:
if
param
in
[
"
BUFFER
"
,
"
buf
"
,
"
buffer
"
,
"
sendbuf
"
,
"
recvbuf
"
,
"
origin_addr
"
]:
return
self
.
buf_var_name
if
param
in
[
"
COUNT
"
,
"
count
"
,
"
sendcount
"
,
"
recvcount
"
]:
if
param
in
[
"
COUNT
"
,
"
count
"
,
"
sendcount
"
,
"
recvcount
"
,
"
origin_count
"
,
"
target_count
"
,
"
result_count
"
]:
return
str
(
self
.
buf_size
)
if
param
in
[
"
DATATYPE
"
,
"
datatype
"
,
"
sendtype
"
,
"
recvtype
"
]:
if
param
in
[
"
DATATYPE
"
,
"
datatype
"
,
"
sendtype
"
,
"
recvtype
"
,
"
origin_datatype
"
,
"
target_datatype
"
,
"
result_datatype
"
]:
return
self
.
dtype
[
1
]
if
param
in
[
"
DEST
"
,
"
dest
"
]:
if
param
in
[
"
DEST
"
,
"
dest
"
,
"
target_rank
"
]:
return
"
0
"
if
param
in
[
"
SRC
"
,
"
source
"
]:
return
"
1
"
...
...
@@ -71,6 +73,24 @@ class CorrectParameterFactory:
return
"
MPI_COMM_WORLD
"
if
param
in
[
"
remote_leader
"
]:
return
"
0
"
if
param
in
[
"
target_disp
"
]:
return
"
0
"
if
param
in
[
"
win
"
]:
return
"
win
"
if
param
in
[
"
baseptr
"
]:
return
"
&
"
+
self
.
winbuf_var_name
if
param
in
[
"
base
"
]:
return
self
.
winbuf_var_name
if
param
in
[
"
size
"
]:
return
self
.
buf_size_bytes
if
param
in
[
"
disp_unit
"
]:
return
"
sizeof(int)
"
if
param
in
[
"
info
"
]:
return
"
MPI_INFO_NULL
"
if
param
in
[
"
result_addr
"
]:
return
"
resultbuf
"
if
param
in
[
"
compare_addr
"
]:
return
"
comparebuf
"
print
(
"
Not Implemented:
"
+
param
)
assert
False
,
"
Param not known
"
...
...
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