PetaVision / OpenPV

PetaVision is a C++ library for designing and deploying large-scale neurally-inspired computational models.
http://petavision.github.io
Eclipse Public License 1.0
40 stars 13 forks source link

Probe files remember positions when checkpointing #315

Closed peteschultz closed 2 years ago

peteschultz commented 2 years ago

This pull request enables CheckpointableFileStream to update the file positions after a printf() call. As a result, text files, such as those created by probes, have their file positions checkpointed. Starting from a checkpoint using either the -r or -c command line option therefore restores the file position to where it was during the checkpoint.

garkenyon commented 2 years ago

Awesome!

On Wed, Sep 22, 2021, 8:11 PM peteschultz @.***> wrote:

This pull request enables CheckpointableFileStream to update the file positions after a printf() call. As a result, text files, such as those created by probes, have their file positions checkpointed. Starting from a checkpoint using either the -r or -c command line option therefore restores the file position to where it was during the checkpoint.

You can view, comment on, or merge this pull request online at:

https://github.com/PetaVision/OpenPV/pull/315 Commit Summary

File Changes

Patch Links:

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/PetaVision/OpenPV/pull/315, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGMFQSV2XDOKZRAIN6LOO3UDKEERANCNFSM5ESUOXHQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.