Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
spinifel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
ecpcitest
chm137
spinifel
Commits
5aa21741
Commit
5aa21741
authored
1 year ago
by
Monarin Uervirojnangkoorn
Browse files
Options
Downloads
Patches
Plain Diff
all worker ranks print only when verbosity > 1
parent
fb5f9874
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#451813
passed
1 year ago
Stage: build
Stage: unit_test
Stage: test
Stage: cleanup
Changes
1
Pipelines
7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
spinifel/mpi/main.py
+11
-2
11 additions, 2 deletions
spinifel/mpi/main.py
with
11 additions
and
2 deletions
spinifel/mpi/main.py
+
11
−
2
View file @
5aa21741
...
...
@@ -124,8 +124,14 @@ def main():
run
=
None
writer_rank
=
0
# Setup logger for all worker ranks
logger
=
utils
.
Logger
(
contexts
.
is_worker
,
settings
,
myrank
=
comm
.
rank
)
# Setup logger according to verbosity level
active_logger
=
False
if
settings
.
verbosity
>
1
:
active_logger
=
contexts
.
is_worker
else
:
if
comm
.
rank
==
writer_rank
:
active_logger
=
True
logger
=
utils
.
Logger
(
active_logger
,
settings
,
myrank
=
comm
.
rank
)
logger
.
log
(
"
In MPI main
"
)
if
settings
.
use_psana
:
logger
.
log
(
"
Using psana
"
)
...
...
@@ -136,6 +142,9 @@ def main():
logger
.
log
(
f
"
writerrank :
{
writer_rank
}
"
)
logger
.
log
(
f
"
#img/rank :
{
N_images_per_rank
}
"
)
from
mpi4py
import
MPI
logger
.
log
(
f
"
host :
{
MPI
.
Get_processor_name
()
}
"
)
# Skip this data saving and ac calculation in test mode
generation
=
0
reference_dict
=
{}
...
...
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