Skip to content
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

TriBITS: Specific CXX_FLAGS for FROSch #10111

Closed
searhein opened this issue Jan 20, 2022 · 12 comments · Fixed by #10219
Closed

TriBITS: Specific CXX_FLAGS for FROSch #10111

searhein opened this issue Jan 20, 2022 · 12 comments · Fixed by #10219
Labels
Framework tasks Framework tasks (used internally by Framework team) PA: Framework Issues that fall under the Trilinos Framework Product Area pkg: ShyLU TriBITS Issues with the TriBITS framework itself, not usage of the TriBITS framework type: enhancement Issue is an enhancement, not a bug

Comments

@searhein
Copy link
Contributor

Question

Is there a way of adding some CXX_FLAGS only for FROSch, such as

-D ShyLU_DDFROSch_CXX_FLAGS:STRING= ...

?

@searhein searhein added type: question pkg: ShyLU TriBITS Issues with the TriBITS framework itself, not usage of the TriBITS framework labels Jan 20, 2022
@cgcgcg
Copy link
Contributor

cgcgcg commented Jan 21, 2022

@bartlettroscoe

@bartlettroscoe
Copy link
Member

Take a look at "Options can also be targeted to a specific TriBITS package using" at:

It is not clear from that documentation if that only works at the parent package level or will also work at the sub-package level as well. We would have to check. If it is not supported at the subpackage level, that could be added. (Which is 95% tests and documentation and 5% actually adding the feature which would likely take 2 lines of CMake code.)

NOTE: In the many years of using TriBITS, I can only think of a few times that people have used this and it was only to work around compiler defects.

@searhein
Copy link
Contributor Author

@bartlettroscoe Thanks for the quick reply!

It worked for ShyLU_DD_CXX_FLAGS but it did not for ShyLU_DDFROSch_CXX_FLAGS. Hence, it seems to be related to the fact that FROSch is a subpackages. However, it would be great if this would be possible. The reason is that I would like to enable warnings and turn them into errors for compiling FROSch locally. If I did that now, I would get the same behavior for ShyLU_DDBDDC because it is mandatory for ShyLU_DD.

@searhein
Copy link
Contributor Author

@bartlettroscoe Can you please let me know how to do this on the sub-package level? Thank you!

@bartlettroscoe
Copy link
Member

@bartlettroscoe Can you please let me know how to do this on the sub-package level? Thank you!

@searhein, let me take a look. TriBITS 'master' is now ahead of what is currently synced into Trilinos 'develop' due to the delayed merge of PR #9978 (which I am still working on) but I can create a PR for TriBITS directly against Trilinos 'develop' to implement this and then do the Git mechanics to get this back over to the TriBITS side.

@bartlettroscoe
Copy link
Member

@searhein, see TriBITSPub/TriBITS#442 and please comment on option-1 vs. option-2 there.

@searhein
Copy link
Contributor Author

@bartlettroscoe Thanks. I just commented on it.

@searhein
Copy link
Contributor Author

searhein commented Feb 3, 2022

@bartlettroscoe Is there already an update on this? I would really like to try it out. Thank you!

@bartlettroscoe
Copy link
Member

@searhein, sorry, my time has been dominated by TriBITSPub/TriBITS#433 and TriBITSPub/TriBITS#443 trying to get PR #9978 merged to Trilinos 'develop'. I should have time tomorrow to work on <SubProject>_<LANG>_FLAGS tomorrow. Sorry for the delay.

@searhein
Copy link
Contributor Author

searhein commented Feb 3, 2022

@bartlettroscoe No problem, I was just wondering. Thanks.

@bartlettroscoe
Copy link
Member

@searhein, once the Trilinos #10219 is reviewed, approved, and merged, you should be able to set:

  -D ShyLU_DDFROSch_CXX_FLAGS:STRING="<flags-just-for-frosh>"

and those flags <flags-just-for-frosh> should just be appended to the CMAKE_CXX_FLAGS just for the ShyLU_DDFROSch subpackage.

I have strong extensive automated testing for this in TriBITSPub/TriBITS#453.

@bartlettroscoe bartlettroscoe added type: enhancement Issue is an enhancement, not a bug Framework tasks Framework tasks (used internally by Framework team) PA: Framework Issues that fall under the Trilinos Framework Product Area and removed type: question labels Feb 20, 2022
trilinos-autotester added a commit that referenced this issue Feb 24, 2022
…ge-lang-flags

Automatically Merged using Trilinos Pull Request AutoTester
PR Title: Add support for subpackage-specific compiler flags (#10111)
PR Author: bartlettroscoe
@bartlettroscoe
Copy link
Member

@searhein verified this is fixed in #10219 (comment).

Closing as complete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Framework tasks Framework tasks (used internally by Framework team) PA: Framework Issues that fall under the Trilinos Framework Product Area pkg: ShyLU TriBITS Issues with the TriBITS framework itself, not usage of the TriBITS framework type: enhancement Issue is an enhancement, not a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants