-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add binary SDP format to skydiving_release branch #145
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(cherry picked from commit 46e0aa7)
Printed for rank=0 at timer start, example: 0 run.step.frobenius_product_symmetric MemAvailable, GB: 216.604 0 run.step.frobenius_product_symmetric MemUsed, GB: 34.8657 (cherry picked from commit 4e1ab5d)
…ting to file (cherry picked from commit 31f1a1c)
…_b_size also assert that they are equal (cherry picked from commit 6d09479)
(cherry picked from commit 7d1f137)
(cherry picked from commit c7a5bf8)
…ectory. Previously, the current working directory was used. This could lead to less predictable behaviour. (cherry picked from commit 156fc7e)
(cherry picked from commit 412df53)
In all other places in our code we actually need num_points, not degree; in particular, when writing sdp.zip (cherry picked from commit a467030)
(cherry picked from commit ca91712)
sdp2input: add --outputFormat option (json or bin) by default, --outputFormat=bin TODO test (cherry picked from commit 407169c)
Ideally we should use rapidjson for serializing, but according to my benchmarks it is ~2x slower when writing arrays of BigFloats, because with rapidjson we have to write BigFloat to stringstream, setting precision each time. (cherry picked from commit 3c62abd)
For example, after introducing a bug I caught ARCHIVE_WARN with "Inconsistent uncompressed size: 34 in central directory, 134031 in local header". In the old version, reader just pretended that there are no more files. (cherry picked from commit 41e5a69)
…ut file has unexpected extension. (cherry picked from commit 94317df)
…e readability (cherry picked from commit c798f7c)
…blocks Replaced size_t with El::Int to avoid compiler warnings (cherry picked from commit 65f2beb)
Use cxx17 always. (cherry picked from commit fb646c8)
…blocks blocks. (cherry picked from commit edd3640)
(cherry picked from commit 3420367)
git will return current commit, if no tags found (e.g. in forked repo) (cherry picked from commit f0d29ea)
Usage: pvm2sdp [FORMAT] PRECISION INPUT... OUTPUT FORMAT is 'bin' or 'json' If FORMAT is missing, bin is used by default (cherry picked from commit dfd37ba)
(pmp2sdp was fixed by previous commit) (cherry picked from commit b83564b)
…blocks() Previously, SDP constructor could fail with obscure rapidjson error "Assertion `IsObject ()' failed."
TODO: cherry-pick #149 to fix binary sdp performance for blocks with many zeros |
…in many zeros If BigFloat is zero, then we write only boolean flag indicating it. If not, we write the flag(=false) and then serialized bytes. This makes zeros ~100x more compact (for precision=768, BigFloat needs ~100B). TODO: maybe we can use the same trick for MPI communication
El::Matrix::Control() does not take ownership correctly, which caused theleak https://gitlab.com/bootstrapcollaboration/elemental/-/issues/3
…sed RAM consumption We don't need any tracking, we're just writing arrays.
Closing this PR as obsolete, new |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Cherry-picked commits from PR #114 implementing binary SDP.
Also cherry-picked some minor fixes and improvements for sdp2input-related code.
NB: The code is incompatible with old SDP's, so you'll have to regenerate them.
UPD other relevant fixes that are (or should be) cherry-picked: