Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
SWIFTsim
Commits
0d96b833
Commit
0d96b833
authored
9 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Start the clock before MPI
parent
0dab2629
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!136
Master
,
!121
Gpart mpi io
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/main.c
+3
-3
3 additions, 3 deletions
examples/main.c
with
3 additions
and
3 deletions
examples/main.c
+
3
−
3
View file @
0d96b833
...
...
@@ -102,6 +102,9 @@ int main(int argc, char *argv[]) {
/* Choke on FP-exceptions. */
// feenableexcept( FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW );
/* Initialize CPU frequency, this also starts time. */
clocks_set_cpufreq
(
cpufreq
);
#ifdef WITH_MPI
/* Start by initializing MPI. */
int
res
,
prov
;
...
...
@@ -132,9 +135,6 @@ int main(int argc, char *argv[]) {
&
initial_partition
.
grid
[
1
],
&
initial_partition
.
grid
[
0
]);
#endif
/* Initialize CPU frequency, this also starts time. */
clocks_set_cpufreq
(
cpufreq
);
/* Greeting message */
if
(
myrank
==
0
)
greetings
();
...
...
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