Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor 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
Development
openfoam
Commits
4408ec20
Commit
4408ec20
authored
7 years ago
by
mattijs
Browse files
Options
Downloads
Patches
Plain Diff
ENH: collated: switch off threading by default. See also
#659
.
parent
fd4782f7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
etc/controlDict
+4
-4
4 additions, 4 deletions
etc/controlDict
src/Pstream/mpi/UPstream.C
+7
-1
7 additions, 1 deletion
src/Pstream/mpi/UPstream.C
with
11 additions
and
5 deletions
etc/controlDict
+
4
−
4
View file @
4408ec20
...
@@ -81,13 +81,13 @@ OptimisationSwitches
...
@@ -81,13 +81,13 @@ OptimisationSwitches
//- collated: thread buffer size for queued file writes.
//- collated: thread buffer size for queued file writes.
// If set to 0 or not sufficient for the file size threading is not used.
// If set to 0 or not sufficient for the file size threading is not used.
// Default:
2
e9
// Default:
1
e9
maxThreadFileBufferSize
2e9
;
maxThreadFileBufferSize
0
;
//- masterUncollated: non-blocking buffer size.
//- masterUncollated: non-blocking buffer size.
// If the file exceeds this buffer size scheduled transfer is used.
// If the file exceeds this buffer size scheduled transfer is used.
// Default:
2
e9
// Default:
1
e9
maxMasterFileBufferSize
2
e9;
maxMasterFileBufferSize
1
e9;
commsType nonBlocking; //scheduled; //blocking;
commsType nonBlocking; //scheduled; //blocking;
floatTransfer 0;
floatTransfer 0;
...
...
This diff is collapsed.
Click to expand it.
src/Pstream/mpi/UPstream.C
+
7
−
1
View file @
4408ec20
...
@@ -30,6 +30,7 @@ License
...
@@ -30,6 +30,7 @@ License
#include
"SubList.H"
#include
"SubList.H"
#include
"allReduce.H"
#include
"allReduce.H"
#include
"int.H"
#include
"int.H"
#include
"collatedFileOperation.H"
#include
<mpi.h>
#include
<mpi.h>
...
@@ -128,12 +129,17 @@ bool Foam::UPstream::init(int& argc, char**& argv)
...
@@ -128,12 +129,17 @@ bool Foam::UPstream::init(int& argc, char**& argv)
//MPI_Init(&argc, &argv);
//MPI_Init(&argc, &argv);
int
wanted_thread_support
=
MPI_THREAD_SINGLE
;
if
(
fileOperations
::
collatedFileOperation
::
maxThreadFileBufferSize
>
0
)
{
wanted_thread_support
=
MPI_THREAD_MULTIPLE
;
}
int
provided_thread_support
;
int
provided_thread_support
;
MPI_Init_thread
MPI_Init_thread
(
(
&
argc
,
&
argc
,
&
argv
,
&
argv
,
MPI_THREAD_MULTIPLE
,
wanted_thread_support
,
&
provided_thread_support
&
provided_thread_support
);
);
...
...
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