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
e8f53fe7
Commit
e8f53fe7
authored
2 years ago
by
Peter W. Draper
Browse files
Options
Downloads
Patches
Plain Diff
Squash some compilation issues
parent
dc2fdbee
Branches
Branches containing commit
No related tags found
1 merge request
!11
Draft: Fast one-sided MPI version
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
mpiuse.c
+4
-4
4 additions, 4 deletions
mpiuse.c
swiftmpifakestepsim.c
+0
-2
0 additions, 2 deletions
swiftmpifakestepsim.c
swiftmpistepsim.c
+0
-2
0 additions, 2 deletions
swiftmpistepsim.c
with
4 additions
and
8 deletions
mpiuse.c
+
4
−
4
View file @
e8f53fe7
...
...
@@ -442,11 +442,11 @@ void mpiuse_log_generate(int nr_nodes, int nr_logs, int size, int random,
*/
void
mpiuse_shuffle_logs
(
struct
mpiuse_log_entry
**
logs
,
int
nlogs
)
{
struct
mpiuse_log_entry
tmp
;
struct
mpiuse_log_entry
*
tmp
;
for
(
int
k
=
nlogs
-
1
;
k
>
0
;
k
--
)
{
unsigned
int
j
=
(
unsigned
int
)(
drand48
()
*
(
k
+
1
));
memcpy
(
&
tmp
,
&
logs
[
j
],
sizeof
(
struct
mpiuse_log_entry
*
))
;
memcpy
(
&
logs
[
j
]
,
&
logs
[
k
]
,
sizeof
(
struct
mpiuse_log_entry
*
))
;
memcpy
(
&
logs
[
k
],
&
tmp
,
sizeof
(
struct
mpiuse_log_entry
*
))
;
tmp
=
logs
[
j
]
;
logs
[
j
]
=
logs
[
k
];
logs
[
k
]
=
tmp
;
}
}
This diff is collapsed.
Click to expand it.
swiftmpifakestepsim.c
+
0
−
2
View file @
e8f53fe7
...
...
@@ -51,11 +51,9 @@ static int volatile nr_reqs = 0;
static
int
volatile
injecting
=
1
;
static
struct
mpiuse_log_entry
**
volatile
recvs_queue
;
static
int
volatile
nr_recvs
=
0
;
static
int
volatile
ind_recv
=
0
;
static
int
volatile
todo_recv
=
0
;
static
struct
mpiuse_log_entry
**
volatile
sends_queue
;
static
int
volatile
nr_sends
=
0
;
static
int
volatile
ind_send
=
0
;
static
int
volatile
todo_send
=
0
;
/**
...
...
This diff is collapsed.
Click to expand it.
swiftmpistepsim.c
+
0
−
2
View file @
e8f53fe7
...
...
@@ -63,11 +63,9 @@ static int volatile nr_reqs = 0;
static
int
volatile
injecting
=
1
;
static
struct
mpiuse_log_entry
**
volatile
recvs_queue
;
static
int
volatile
nr_recvs
=
0
;
static
int
volatile
ind_recv
=
0
;
static
int
volatile
todo_recv
=
0
;
static
struct
mpiuse_log_entry
**
volatile
sends_queue
;
static
int
volatile
nr_sends
=
0
;
static
int
volatile
ind_send
=
0
;
static
int
volatile
todo_send
=
0
;
/* CPU frequency of the machine that created the MPI log. */
...
...
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