Skip to content

Option to generate Tapenade's external flow library#9

Open
jlbouchot wants to merge 3 commits intomainfrom
feature/diffblasgenlib
Open

Option to generate Tapenade's external flow library#9
jlbouchot wants to merge 3 commits intomainfrom
feature/diffblasgenlib

Conversation

@jlbouchot
Copy link
Copy Markdown
Collaborator

@jlbouchot jlbouchot commented Apr 2, 2026

Addition of the --genlib option allowing to generate a file "DiffBlasGenLib" in the root of the project.

This file is useful for anyone using tapenade in a larger codebase to tell tapenade (via the "-ext DiggBlasGenLib" option of tapenade) what are the in/out behaviours of the various parameters of functions and subroutines.

Without this library Tapenade will consider very conservative choices, delivering a suboptimal differentiated code.

@jlbouchot jlbouchot marked this pull request as draft April 2, 2026 12:11
@jlbouchot jlbouchot self-assigned this Apr 2, 2026
@jlbouchot jlbouchot linked an issue Apr 2, 2026 that may be closed by this pull request
Comment on lines +653 to 654
in_args_section = False # This variable is used nowhere

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sriharikrishna Should we clean the code a bit?


# Update log path to be in the function subdirectory
func_log_path = func_out_dir / (src.stem + ".tapenade.log")
# func_log_path = func_out_dir / (src.stem + ".tapenade.log") # ISNT THIS COMPLETELY USELESS??
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verify need for this variable

@jlbouchot jlbouchot marked this pull request as ready for review April 2, 2026 15:04
@jlbouchot jlbouchot requested a review from sriharikrishna April 2, 2026 15:05
@jlbouchot jlbouchot changed the title Option to generate Tapenade's external flow llibrary Option to generate Tapenade's external flow library Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GenLib for Tapenade

1 participant