Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pugs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
code
pugs
Commits
5e5fba1e
Commit
5e5fba1e
authored
7 months ago
by
Stéphane Del Pino
Browse files
Options
Downloads
Patches
Plain Diff
Deactivate HDF5 compression
parent
dd0d828f
No related branches found
No related tags found
1 merge request
!199
Integrate checkpointing
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/utils/Stop.cpp
+5
-5
5 additions, 5 deletions
src/utils/Stop.cpp
src/utils/checkpointing/WriteArray.hpp
+3
-3
3 additions, 3 deletions
src/utils/checkpointing/WriteArray.hpp
src/utils/checkpointing/WriteTable.hpp
+3
-3
3 additions, 3 deletions
src/utils/checkpointing/WriteTable.hpp
with
11 additions
and
11 deletions
src/utils/Stop.cpp
+
5
−
5
View file @
5e5fba1e
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
bool
bool
stop
()
stop
()
{
{
bool
must_
stop
=
false
;
bool
stop
=
false
;
if
(
parallel
::
rank
()
==
0
)
{
if
(
parallel
::
rank
()
==
0
)
{
std
::
filesystem
::
path
stop_file
(
"stop"
);
std
::
filesystem
::
path
stop_file
(
"stop"
);
...
@@ -26,7 +26,7 @@ stop()
...
@@ -26,7 +26,7 @@ stop()
std
::
filesystem
::
last_write_time
(
stop_file
))
std
::
filesystem
::
last_write_time
(
stop_file
))
.
count
();
.
count
();
must_
stop
=
elapse_time
>
stop_file_age
;
stop
=
elapse_time
>
stop_file_age
;
}
}
#ifdef PUGS_HAS_SLURM
#ifdef PUGS_HAS_SLURM
...
@@ -36,7 +36,7 @@ stop()
...
@@ -36,7 +36,7 @@ stop()
int
slurm_job_id
=
std
::
atoi
(
env
);
int
slurm_job_id
=
std
::
atoi
(
env
);
if
(
slurm_get_rem_time
(
slurm_job_id
)
<
150
)
{
if
(
slurm_get_rem_time
(
slurm_job_id
)
<
150
)
{
must_
stop
=
true
;
stop
=
true
;
}
}
slurm_fini
();
slurm_fini
();
...
@@ -44,7 +44,7 @@ stop()
...
@@ -44,7 +44,7 @@ stop()
#endif // PUGS_HAS_SLURM
#endif // PUGS_HAS_SLURM
}
}
parallel
::
broadcast
(
must_
stop
,
0
);
parallel
::
broadcast
(
stop
,
0
);
return
must_
stop
;
return
stop
;
}
}
This diff is collapsed.
Click to expand it.
src/utils/checkpointing/WriteArray.hpp
+
3
−
3
View file @
5e5fba1e
...
@@ -29,9 +29,9 @@ write(HighFive::Group& group, const std::string& name, const Array<DataType>& ar
...
@@ -29,9 +29,9 @@ write(HighFive::Group& group, const std::string& name, const Array<DataType>& ar
using
data_type
=
std
::
remove_const_t
<
DataType
>
;
using
data_type
=
std
::
remove_const_t
<
DataType
>
;
HighFive
::
DataSetCreateProps
properties
;
HighFive
::
DataSetCreateProps
properties
;
properties
.
add
(
HighFive
::
Chunking
(
std
::
vector
<
hsize_t
>
{
std
::
min
(
4ul
*
1024ul
*
1024ul
,
global_size
)}));
//
properties.add(HighFive::Chunking(std::vector<hsize_t>{std::min(4ul * 1024ul * 1024ul, global_size)}));
properties
.
add
(
HighFive
::
Shuffle
());
//
properties.add(HighFive::Shuffle());
properties
.
add
(
HighFive
::
Deflate
(
3
));
//
properties.add(HighFive::Deflate(3));
auto
xfer_props
=
HighFive
::
DataTransferProps
{};
auto
xfer_props
=
HighFive
::
DataTransferProps
{};
xfer_props
.
add
(
HighFive
::
UseCollectiveIO
{});
xfer_props
.
add
(
HighFive
::
UseCollectiveIO
{});
...
...
This diff is collapsed.
Click to expand it.
src/utils/checkpointing/WriteTable.hpp
+
3
−
3
View file @
5e5fba1e
...
@@ -36,9 +36,9 @@ write(HighFive::Group& group, const std::string& name, const Table<DataType>& ta
...
@@ -36,9 +36,9 @@ write(HighFive::Group& group, const std::string& name, const Table<DataType>& ta
using
data_type
=
std
::
remove_const_t
<
DataType
>
;
using
data_type
=
std
::
remove_const_t
<
DataType
>
;
HighFive
::
DataSetCreateProps
properties
;
HighFive
::
DataSetCreateProps
properties
;
properties
.
add
(
HighFive
::
Chunking
(
std
::
vector
<
hsize_t
>
{
std
::
min
(
4ul
*
1024ul
*
1024ul
,
global_size
)}));
//
properties.add(HighFive::Chunking(std::vector<hsize_t>{std::min(4ul * 1024ul * 1024ul, global_size)}));
properties
.
add
(
HighFive
::
Shuffle
());
//
properties.add(HighFive::Shuffle());
properties
.
add
(
HighFive
::
Deflate
(
3
));
//
properties.add(HighFive::Deflate(3));
auto
xfer_props
=
HighFive
::
DataTransferProps
{};
auto
xfer_props
=
HighFive
::
DataTransferProps
{};
xfer_props
.
add
(
HighFive
::
UseCollectiveIO
{});
xfer_props
.
add
(
HighFive
::
UseCollectiveIO
{});
...
...
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