Closed peteschultz closed 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
- Probe files remember positions when checkpointing https://github.com/PetaVision/OpenPV/pull/315/commits/8befbca14f0a53fffca97fc367a2cfa1c0504d7f
File Changes
- M src/checkpointing/CheckpointableFileStream.cpp https://github.com/PetaVision/OpenPV/pull/315/files#diff-c9aee8392ae5cf3c190938dc4e4154667d01d93e40fe1ae1efe5dbd474149e5e (160)
- M src/checkpointing/CheckpointableFileStream.hpp https://github.com/PetaVision/OpenPV/pull/315/files#diff-f07c001275ff117926a8f63ab0734e8e746761d66d0cacc1f01825503038fa87 (25)
- M src/checkpointing/Checkpointer.cpp https://github.com/PetaVision/OpenPV/pull/315/files#diff-34b4dbdd27d7eb4dd59562dec6c7772848d86faf8d49a4455fae70d1e3bcd33d (13)
- M src/io/PrintStream.hpp https://github.com/PetaVision/OpenPV/pull/315/files#diff-dabfb60fa632d9fc8f0de26f1c3b1d39ed8e6c74c400bc656d373db4802eee3a (34)
- M src/probes/BaseConnectionProbe.cpp https://github.com/PetaVision/OpenPV/pull/315/files#diff-b84912e76a08b50140cdba5b2b4e59ee266f9a9645194eb40fdfd2afa7594502 (18)
- M src/probes/BaseConnectionProbe.hpp https://github.com/PetaVision/OpenPV/pull/315/files#diff-0e249bdbaabe0f36a9dcfcc3103285e62bd9ed855dd317809efbf504324615e3 (3)
- M src/probes/BaseProbe.cpp https://github.com/PetaVision/OpenPV/pull/315/files#diff-bad15e2eddfb1d3ba36c75a10f4ba90ddb0ac914029c01f003ad4d486cad2547 (35)
- M src/probes/BaseProbe.hpp https://github.com/PetaVision/OpenPV/pull/315/files#diff-1e0861740610a896627ade7d587546075252434accebfe5dfd4b2a9427697fa7 (3)
- M src/probes/ColProbe.cpp https://github.com/PetaVision/OpenPV/pull/315/files#diff-2cba4dab8d73a5d51107ed8c91603915d080672e95c511c86e1457d7f30c15a3 (7)
- M src/probes/ColProbe.hpp https://github.com/PetaVision/OpenPV/pull/315/files#diff-35a9552121f8df639bf5ba33a6e207fd3954a694a79804b89a1f1c630db46292 (5)
- M src/probes/ColumnEnergyProbe.cpp https://github.com/PetaVision/OpenPV/pull/315/files#diff-6793093424a6039e30281898bc806e41af97618aca825d4b8b2308a0f3d672e3 (2)
- M src/probes/ColumnEnergyProbe.hpp https://github.com/PetaVision/OpenPV/pull/315/files#diff-baeaf8b8fc987d31026001e8c71fb69c8cd69ea39f23be377a532cd04ebf350f (2)
- M src/probes/PointProbe.cpp https://github.com/PetaVision/OpenPV/pull/315/files#diff-5a385e6eff02d9c8981d8bc8128aea66f33f82a4c9301c1332105c3b5120e679 (20)
- M src/probes/PointProbe.hpp https://github.com/PetaVision/OpenPV/pull/315/files#diff-145b476803327f595442770cfedac5e61dda0a1a5f0ce18d0f9714f7bd6cb43b (3)
- M src/probes/QuotientColProbe.cpp https://github.com/PetaVision/OpenPV/pull/315/files#diff-b2dbcfbe0bd1e7dfcaf3fceeb62514275af0c84b801d99f8f977eff737fe1006 (2)
- M src/probes/QuotientColProbe.hpp https://github.com/PetaVision/OpenPV/pull/315/files#diff-9f102fdd474edb571703f5d88f58a18d673a8635d7012ee543cfcb6bb3a88fda (7)
- M tests/LIFTest/src/LIFTestProbe.cpp https://github.com/PetaVision/OpenPV/pull/315/files#diff-95a92ce80b7222815b29da0b3d4886366b6cef63b01c600c3907620bd094484b (5)
- M tests/LIFTest/src/LIFTestProbe.hpp https://github.com/PetaVision/OpenPV/pull/315/files#diff-f0f1027e6a3aa25bfde42681ff95ee9d3e4062639af06f748de0864c383048f5 (3)
Patch Links:
- https://github.com/PetaVision/OpenPV/pull/315.patch
- https://github.com/PetaVision/OpenPV/pull/315.diff
— 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.
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.