-
Notifications
You must be signed in to change notification settings - Fork 846
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
[WIP] Tag / debug tape recordings #2343
Open
oleburghardt
wants to merge
21
commits into
develop
Choose a base branch
from
feature_tag_debug_tape
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
3801e4d
Throw error message in case the multizone discrete adjoint solver wil…
oleburghardt 0e5f95b
Softcode indentifier/index.
oleburghardt dc38cc3
Add tag type option to build system.
oleburghardt 19a1a70
Add option to use RealReverseTag as AD type.
oleburghardt 36c922e
Temporarily adjust/hardcode type size for memory alignment in vectori…
oleburghardt 84e97f4
added turbo obj funcs
joshkellyjak e68f844
Merge branch 'develop' into feature_mz_adjoint_for_turbo
joshkellyjak bb0831d
thems the breaks
joshkellyjak 4327942
Merge branch 'feature_mz_adjoint_for_turbo' of https://github.com/su2…
joshkellyjak 9f1b07c
Merge remote-tracking branch 'upstream/feature_tag_debug_tape' into f…
joshkellyjak 6e65dd1
Add config option and indicator for a debug discrete adjoint run.
oleburghardt 82f69e9
Add routines for setting tags to AD structure.
oleburghardt 9de8e93
Add kinds of recording for tag tapes.
oleburghardt 57fbcea
Comment out checks in AD structure whether an identifier is active. T…
oleburghardt 3da17d8
Add first WIP version of the tag debug mode to the (multizone) discre…
oleburghardt b0e7c86
Fix preaccumulation error in ComputeVorticityAndStrainMag (first debu…
oleburghardt 688797a
Merge branch 'develop' into feature_tag_debug_tape
joshkellyjak 8556c2a
Revert small change (will be added to CoDi soon).
oleburghardt 683de77
Resolves tag errors in turbo mode
joshkellyjak 13ca3f5
Revert "Resolves tag errors in turbo mode"
joshkellyjak 1169606
Merge branch 'feature_tag_debug_tape' of https://github.com/su2code/S…
joshkellyjak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you be okay with replacing
32
by a function to find the next power of 2? (Requirement of alignas.) Or could this be done any better?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For what type is the result not a power of 2?
If we use a fixed number instead of sizeof, arrays of this type may take more space than necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reverse tag type is 24 I think. If
sizeof(Scalar)
is already a power of 2 that function should of course not change it :)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, so the tag doesn't have a float/double part? Then it should be ok to round Size * sizeof(Scalar) to the next power of 2.
Or maybe using Size * alignof(Scalar), that may be more generic and achieve the desired result.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well it does contain at least a double for the primal value (show must go on). I'll check or ask what the remaining bytes are for besides two
int
s for index and tag. Butsizeof(RealReverseTag) = 24
.