Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
swiftmpistepsim
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
Container registry
Model registry
Operate
Environments
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
swiftmpistepsim
Commits
22a83474
Commit
22a83474
authored
5 years ago
by
Peter W. Draper
Browse files
Options
Downloads
Patches
Plain Diff
Add scaling option
parent
2e8cbf16
No related branches found
No related tags found
1 merge request
!8
Draft: RDMA version with wrapped infinity calls
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
swiftmpistepsim.c
+10
-1
10 additions, 1 deletion
swiftmpistepsim.c
with
10 additions
and
1 deletion
swiftmpistepsim.c
+
10
−
1
View file @
22a83474
...
@@ -35,6 +35,9 @@ int myrank = -1;
...
@@ -35,6 +35,9 @@ int myrank = -1;
/* Are we verbose. */
/* Are we verbose. */
static
int
verbose
=
0
;
static
int
verbose
=
0
;
/* Scale to apply to the size of the messages we send. */
static
float
messagescale
=
1
.
0
;
/* Attempt to keep original injection time differences. */
/* Attempt to keep original injection time differences. */
static
int
usetics
=
1
;
static
int
usetics
=
1
;
...
@@ -388,6 +391,9 @@ static void pick_logs(void) {
...
@@ -388,6 +391,9 @@ static void pick_logs(void) {
reqs_queue
[
nr_reqs
]
=
log
;
reqs_queue
[
nr_reqs
]
=
log
;
nr_reqs
++
;
nr_reqs
++
;
/* Scale size. */
log
->
size
*=
messagescale
;
}
else
{
}
else
{
error
(
"task type '%d' is not a known send or recv task"
,
log
->
type
);
error
(
"task type '%d' is not a known send or recv task"
,
log
->
type
);
}
}
...
@@ -437,7 +443,7 @@ int main(int argc, char *argv[]) {
...
@@ -437,7 +443,7 @@ int main(int argc, char *argv[]) {
/* Handle the command-line, we expect a mpiuse data file to read and various
/* Handle the command-line, we expect a mpiuse data file to read and various
* options. */
* options. */
int
opt
;
int
opt
;
while
((
opt
=
getopt
(
argc
,
argv
,
"vfd"
))
!=
-
1
)
{
while
((
opt
=
getopt
(
argc
,
argv
,
"vfd
s:
"
))
!=
-
1
)
{
switch
(
opt
)
{
switch
(
opt
)
{
case
'd'
:
case
'd'
:
datacheck
=
1
;
datacheck
=
1
;
...
@@ -445,6 +451,9 @@ int main(int argc, char *argv[]) {
...
@@ -445,6 +451,9 @@ int main(int argc, char *argv[]) {
case
'f'
:
case
'f'
:
usetics
=
0
;
usetics
=
0
;
break
;
break
;
case
's'
:
messagescale
=
atof
(
optarg
);
break
;
case
'v'
:
case
'v'
:
verbose
=
1
;
verbose
=
1
;
break
;
break
;
...
...
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