Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TensorJoseph
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
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
Camille Coti
TensorJoseph
Commits
2a2a9c18
Commit
2a2a9c18
authored
5 years ago
by
Camille Coti
Browse files
Options
Downloads
Patches
Plain Diff
Use the number of foremen.... for real
parent
0cb02798
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/hierarchical.cpp
+1
-1
1 addition, 1 deletion
src/hierarchical.cpp
src/tensormatrix_mpi.cpp
+1
-1
1 addition, 1 deletion
src/tensormatrix_mpi.cpp
with
2 additions
and
2 deletions
src/hierarchical.cpp
+
1
−
1
View file @
2a2a9c18
...
...
@@ -24,7 +24,7 @@ void create_communicators_hierarch( MPI_Comm& COMM_FOREMEN, MPI_Comm& COMM_TEAM
color_foreman is set to 1 if I am the root or a foreman */
int
color_foreman
,
workers_per_foreman
;
workers_per_foreman
=
ceil
(
(
double
)(
np
-
1
)
/
(
double
)
NBFOREMEN
);
workers_per_foreman
=
ceil
(
(
double
)(
np
-
1
)
/
(
double
)
nbforemen
);
if
(
ROOT
==
rank
)
{
color_foreman
=
1
;
}
else
{
...
...
This diff is collapsed.
Click to expand it.
src/tensormatrix_mpi.cpp
+
1
−
1
View file @
2a2a9c18
...
...
@@ -39,7 +39,7 @@ real 3m31,034s
MPI_Datatype
DT_PARAMETERS
;
MPI_Datatype
DT_PARAMETERS_2
;
int
nbforemen
;
/* Number of foremen to use with the hierarchical M/W */
int
nbforemen
=
NBFOREMEN
;
/* Number of foremen to use with the hierarchical M/W */
/*******************************************************************************
* Main function *
...
...
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