-
Notifications
You must be signed in to change notification settings - Fork 598
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
feat: query/print build information #4124
Merged
Merged
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
New OIIO global attributes (read only): - "build:platform" retrieves the OS and CPU type that this build of OIIO is fof (e.g., "Linux/x86_64"). - "build:compiler" retrieves the compiler name and version used to build OIIO itself (e.g. "gcc 9.3"). - "build:dependencies" retrieves a semicolon-separated list of dependency libraries -- both for image format support (like libtiff) but also general (boost, TBB, Python, fmt, OCIO). - "build:simd" is a new (preferred) synonym for the SIMD and other hardware capabilities selected at build time. The oldname, "oiio:simd" is hereby softly deprecated as confusing. `oiiotool --buildinfo` is a new command that prints this information. Example output: ``` $ oiiotool --buildinfo OIIO 2.6.0.2spi | MacOS/x86_64 Build compiler: Apple clang 15.0 | C++17/201703 HW features enabled at build: sse2,sse3,ssse3,sse41,sse42 Dependencies: OpenEXR 3.2.1, LIBTIFF Version 4.6.0, jpeg-turbo 3.0.1/jp80, dcmtk 3.6.8, FFMpeg 6.0 (Lavf60.16.100), gif_lib 5.2.1, libheif 1.17.6, OpenJpeg 2.5.0, null 1.0, OpenVDB 11.0.0abi11, libpng 1.6.40, Ptex 2.4, libraw 0.21.2-Release, Webp 1.3.2, Boost 1.83, OpenColorIO 2.3.1, NO Python!, TBB 2021.11.0, fmt 10.2.1 ``` This is all a convenience utility to make it easy to ask users to run a simple command that will tell us a lot of information relevant to resolving their issues in cases where it's related to some of their build-time compiler or dependencies. Also cleaned up the "bug report issue template" to clarify the instructions and specifically ask people to run this command and include the information with any bug report. Signed-off-by: Larry Gritz <[email protected]>
Signed-off-by: Larry Gritz <[email protected]>
…ut in C++ Signed-off-by: Larry Gritz <[email protected]>
Signed-off-by: Larry Gritz <[email protected]>
Does this seem good to everybody? Is there additional information I've forgotten that you think we should be sure to print that will help us to diagnose problems reported by users? |
No objections -> merging |
lgritz
added a commit
to lgritz/OpenImageIO
that referenced
this pull request
Jan 30, 2024
New OIIO global attributes (read only): - "build:platform" retrieves the OS and CPU type that this build of OIIO is fof (e.g., "Linux/x86_64"). - "build:compiler" retrieves the compiler name and version used to build OIIO itself (e.g. "gcc 9.3"). - "build:dependencies" retrieves a semicolon-separated list of library dependencies -- both for image format support (like libtiff) but also general (boost, TBB, Python, fmt, OCIO). - "build:simd" is a new (preferred) synonym for the SIMD and other hardware capabilities selected at build time. The old name, "oiio:simd" is hereby softly deprecated as confusing. `oiiotool --buildinfo` is a new command that prints this information. Example output: ``` $ oiiotool --buildinfo OIIO 2.6.0.2spi | MacOS/x86_64 Build compiler: Apple clang 15.0 | C++17/201703 HW features enabled at build: sse2,sse3,ssse3,sse41,sse42 Dependencies: OpenEXR 3.2.1, LIBTIFF Version 4.6.0, jpeg-turbo 3.0.1/jp80, dcmtk 3.6.8, FFMpeg 6.0 (Lavf60.16.100), gif_lib 5.2.1, libheif 1.17.6, OpenJpeg 2.5.0, null 1.0, OpenVDB 11.0.0abi11, libpng 1.6.40, Ptex 2.4, libraw 0.21.2-Release, Webp 1.3.2, Boost 1.83, OpenColorIO 2.3.1, Python 3.11.7, TBB 2021.11.0, fmt 10.2.1 ``` This is all a convenience utility to make it easy to ask users to run a simple command that will tell us a lot of information relevant to resolving their issues in cases where it's related to some of their build-time compiler or dependencies. Also cleaned up the "bug report issue template" to clarify the instructions and specifically ask people to run this command and include the information with any bug report. --------- Signed-off-by: Larry Gritz <[email protected]>
1div0
pushed a commit
to 1div0/OpenImageIO
that referenced
this pull request
Feb 24, 2024
New OIIO global attributes (read only): - "build:platform" retrieves the OS and CPU type that this build of OIIO is fof (e.g., "Linux/x86_64"). - "build:compiler" retrieves the compiler name and version used to build OIIO itself (e.g. "gcc 9.3"). - "build:dependencies" retrieves a semicolon-separated list of library dependencies -- both for image format support (like libtiff) but also general (boost, TBB, Python, fmt, OCIO). - "build:simd" is a new (preferred) synonym for the SIMD and other hardware capabilities selected at build time. The old name, "oiio:simd" is hereby softly deprecated as confusing. `oiiotool --buildinfo` is a new command that prints this information. Example output: ``` $ oiiotool --buildinfo OIIO 2.6.0.2spi | MacOS/x86_64 Build compiler: Apple clang 15.0 | C++17/201703 HW features enabled at build: sse2,sse3,ssse3,sse41,sse42 Dependencies: OpenEXR 3.2.1, LIBTIFF Version 4.6.0, jpeg-turbo 3.0.1/jp80, dcmtk 3.6.8, FFMpeg 6.0 (Lavf60.16.100), gif_lib 5.2.1, libheif 1.17.6, OpenJpeg 2.5.0, null 1.0, OpenVDB 11.0.0abi11, libpng 1.6.40, Ptex 2.4, libraw 0.21.2-Release, Webp 1.3.2, Boost 1.83, OpenColorIO 2.3.1, Python 3.11.7, TBB 2021.11.0, fmt 10.2.1 ``` This is all a convenience utility to make it easy to ask users to run a simple command that will tell us a lot of information relevant to resolving their issues in cases where it's related to some of their build-time compiler or dependencies. Also cleaned up the "bug report issue template" to clarify the instructions and specifically ask people to run this command and include the information with any bug report. --------- Signed-off-by: Larry Gritz <[email protected]> Signed-off-by: Peter Kovář <[email protected]>
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.
New OIIO global attributes (read only):
oiiotool --buildinfo
is a new command that prints this information.Example output:
This is all a convenience utility to make it easy to ask users to run a simple command that will tell us a lot of information relevant to resolving their issues in cases where it's related to some of their build-time compiler or dependencies.
Also cleaned up the "bug report issue template" to clarify the instructions and specifically ask people to run this command and include the information with any bug report.