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
3957b4d6
Commit
3957b4d6
authored
2 years ago
by
Peter W. Draper
Browse files
Options
Downloads
Patches
Plain Diff
Formatting
parent
28e48586
No related branches found
No related tags found
1 merge request
!6
Version with faked data
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
error.h
+1
-0
1 addition, 0 deletions
error.h
format.sh
+2
-2
2 additions, 2 deletions
format.sh
histogram.c
+2
-2
2 additions, 2 deletions
histogram.c
mpiuse.c
+4
-4
4 additions, 4 deletions
mpiuse.c
swiftmpifakestepsim.c
+2
-2
2 additions, 2 deletions
swiftmpifakestepsim.c
with
11 additions
and
10 deletions
error.h
+
1
−
0
View file @
3957b4d6
#include
<mpi.h>
#include
"clocks.h"
extern
int
myrank
;
...
...
This diff is collapsed.
Click to expand it.
format.sh
+
2
−
2
View file @
3957b4d6
#!/bin/bash
# Clang format command, can be overridden using CLANG_FORMAT_CMD.
# We currrently use version
5
.0 so any overrides should provide that.
clang
=
${
CLANG_FORMAT_CMD
:
=
"clang-format-
5
.0"
}
# We currrently use version
13
.0 so any overrides should provide that.
clang
=
${
CLANG_FORMAT_CMD
:
=
"clang-format-
13
.0"
}
# Formatting command
cmd
=
"
$clang
-style=file
$(
git ls-files |
grep
'\.[ch]$'
)
"
...
...
This diff is collapsed.
Click to expand it.
histogram.c
+
2
−
2
View file @
3957b4d6
#include
"histogram.h"
#include
<float.h>
#include
<math.h>
#include
<stdio.h>
#include
<stdlib.h>
#include
<string.h>
#include
"histogram.h"
/*
* Simple histogram routines.
int main(int argc, char *argv[]) {
...
...
This diff is collapsed.
Click to expand it.
mpiuse.c
+
4
−
4
View file @
3957b4d6
...
...
@@ -400,10 +400,10 @@ void mpiuse_log_generate(int nr_nodes, int nr_logs, int size, int random,
for
(
int
i
=
0
;
i
<
nr_nodes
;
i
++
)
{
for
(
int
j
=
0
;
j
<
nr_nodes
;
j
++
)
{
if
(
i
!=
j
)
{
mpiuse_log_allocation
(
i
,
1
,
k
,
SEND_TYPE
,
NO_SUBTYPE
,
1
,
(
size_t
)
logsize
,
j
,
tag
);
mpiuse_log_allocation
(
j
,
1
,
k
,
RECV_TYPE
,
NO_SUBTYPE
,
1
,
(
size_t
)
logsize
,
i
,
tag
);
mpiuse_log_allocation
(
i
,
1
,
k
,
SEND_TYPE
,
NO_SUBTYPE
,
1
,
(
size_t
)
logsize
,
j
,
tag
);
mpiuse_log_allocation
(
j
,
1
,
k
,
RECV_TYPE
,
NO_SUBTYPE
,
1
,
(
size_t
)
logsize
,
i
,
tag
);
}
}
}
...
...
This diff is collapsed.
Click to expand it.
swiftmpifakestepsim.c
+
2
−
2
View file @
3957b4d6
...
...
@@ -305,7 +305,7 @@ static int cmp_logs(const void *p1, const void *p2) {
* otherwise the order is randomized.
*
* @param random randomize injection order of sends or sends and recvs,
* otherwise use order of the original logs. Just sends
* otherwise use order of the original logs. Just sends
* are randomized when 1, 2 randomizes both, 0 neither.
*/
static
void
pick_logs
(
int
random
)
{
...
...
@@ -523,7 +523,7 @@ int main(int argc, char *argv[]) {
if
(
randomorder
==
1
)
message
(
"Message send order randomized"
);
if
(
randomorder
==
2
)
message
(
"Message send and recv order randomized"
);
}
pick_logs
(
randomorder
);
/* Time to start time. Try to make it synchronous across the ranks. */
...
...
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