Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tadah.MLIP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tadah
Tadah.MLIP
Commits
d2bab69e
Commit
d2bab69e
authored
Oct 7, 2024
by
Marcin Kirsz
Browse files
Options
Downloads
Patches
Plain Diff
HPO MPI draft
parent
cad2aaac
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!5
MPI version of tadah
,
!3
MPI version of Tadah
This commit is part of merge request
!3
. Comments created here will be created in the context of that merge request.
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/tadah_cli.cpp
+23
-15
23 additions, 15 deletions
bin/tadah_cli.cpp
with
23 additions
and
15 deletions
bin/tadah_cli.cpp
+
23
−
15
Edit
View file @
d2bab69e
...
...
@@ -315,16 +315,22 @@ void TadahCLI::subcommand_hpo(
int
rank
=
0
;
// HOST
#ifdef TADAH_ENABLE_HPO
#ifdef TADAH_BUILD_MPI
int
ncpu
=
1
;
MPI_Comm_size
(
MPI_COMM_WORLD
,
&
ncpu
);
MPI_Comm_rank
(
MPI_COMM_WORLD
,
&
rank
);
MPI_Status
status
;
if
(
ncpu
<
2
)
{
std
::
cout
<<
"Minimum number of cpus for an mpi version is 2"
<<
std
::
endl
;
return
;
}
#endif
// HOST
if
(
rank
==
0
)
{
#ifdef TADAH_ENABLE_HPO
if
(
rank
==
0
)
if
(
is_verbose
())
std
::
cout
<<
"HPO mode"
<<
std
::
endl
;
CLI
::
Timer
timer_tot
{
"HPO"
,
CLI
::
Timer
::
Big
};
if
(
hpo
->
count
(
"--verbose"
))
...
...
@@ -343,17 +349,6 @@ void TadahCLI::subcommand_hpo(
config
.
add
(
"STRESS"
,
"true"
);
}
if
(
is_verbose
())
std
::
cout
<<
"HPO mode"
<<
std
::
endl
;
hpo_run
(
config
,
target_file
);
if
(
is_verbose
())
std
::
cout
<<
timer_tot
.
to_string
()
<<
std
::
endl
;
#else
std
::
cout
<<
"-----------------------------------------------"
<<
std
::
endl
;
std
::
cout
<<
"This subcommand is not supported by this build."
<<
std
::
endl
;
std
::
cout
<<
"Tadah! Must by compiled with HPO support."
<<
std
::
endl
;
std
::
cout
<<
"See documentation for details."
<<
std
::
endl
;
std
::
cout
<<
"-----------------------------------------------"
<<
std
::
endl
;
#endif
}
#ifdef TADAH_BUILD_MPI
// WORKER
if
(
rank
==
0
)
{
...
...
@@ -391,7 +386,20 @@ void TadahCLI::subcommand_hpo(
tr
.
solve
();
}
}
#else
hpo_run
(
config
,
target_file
);
#endif
if
(
rank
==
0
)
if
(
is_verbose
())
std
::
cout
<<
timer_tot
.
to_string
()
<<
std
::
endl
;
#else
std
::
cout
<<
"-----------------------------------------------"
<<
std
::
endl
;
std
::
cout
<<
"This subcommand is not supported by this build."
<<
std
::
endl
;
std
::
cout
<<
"Tadah! Must by compiled with HPO support."
<<
std
::
endl
;
std
::
cout
<<
"See documentation for details."
<<
std
::
endl
;
std
::
cout
<<
"-----------------------------------------------"
<<
std
::
endl
;
#endif
}
bool
TadahCLI
::
is_verbose
()
{
...
...
...
...
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
sign in
to comment