[Feature]A new -i/-I/--info argument to show details of configuration and compilation #6734
Merged
mohanchen merged 73 commits intodeepmodeling:developfrom Dec 1, 2025
Merged
Conversation
Added a function to print detailed build information, including version, compiler info, and library support. Updated argument parsing to include a new option for displaying build info.
Added header guards and updated namespace for ModuleIO.
Refactor CMakeLists.txt to improve build information collection and include RapidJSON path.
Updated function documentation for clarity and corrected a typo.
Removed unused functions and added new JSON-related functions.
This script generates a build_info.h file for Makefile-based builds by detecting system information, compiler flags, and library versions.
Added rules for generating build_info.h and enforcing dependencies.
Add conditional include path for parse_args.cpp in test target.
-i/-I/--info argument to show the details of the compilation -i/-I/--info argument to show details of configuration and compilation
mohanchen
approved these changes
Nov 30, 2025
Collaborator
|
LGTM. The only existing drawback is that CUDA-Aware MPI detection has only OpenMPI interface but not including MPICH/Intelmpi, but that is not very important. Good to merge ! |
QuantumMisaka
approved these changes
Nov 30, 2025
Collaborator
Author
Thanks for your reviews!I have just found that ctests are all skipped now,and I need to figure out what has happened... |
mohanchen
requested changes
Dec 1, 2025
Collaborator
mohanchen
left a comment
There was a problem hiding this comment.
the tests need to pass
mohanchen
approved these changes
Dec 1, 2025
This file contains hidden or 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
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.
Linked Issue
Fix #6686
Unit Tests and/or Case Tests for my changes
What's changed?
build_info.hwill be generated after cmake/make configuration process, so "out of source construction" is necessary now.source/Makefilehas been modified to support "out of source construction".What's "out of source construction"?
To build in a individual directory like
buildAcknowledgements
Thanks for reviews from @QuantumMisaka ; thanks for tests on various computation platforms including DSP/SW/GPU by @Critsium-xy and @Cstandardlib .