Add transformer_engine.test() installation smoke check#3197
Open
CodersAcademy006 wants to merge 1 commit into
Open
Add transformer_engine.test() installation smoke check#3197CodersAcademy006 wants to merge 1 commit into
CodersAcademy006 wants to merge 1 commit into
Conversation
Contributor
ad5c755 to
58836ea
Compare
Add a top-level test() entry point so users can verify a Transformer Engine installation without cloning the repository, similar to numpy.test(). It reuses the existing PyPI sanity check and, for each installed framework backend, runs a minimal forward pass on the current device. Checks that need a GPU are skipped when no CUDA device is available, and the PyTorch check reports the device compute capability and which low-precision formats it supports. Closes NVIDIA#170 Signed-off-by: Srijan Upadhyay <srjnupadhyay@gmail.com>
58836ea to
4224e1a
Compare
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.
Problem
There is no way to verify a Transformer Engine installation without cloning the
repository and running the test suite. Users installing from PyPI or from source
have no quick sanity check that the package and its framework extensions loaded
correctly on their machine (#170).
Solution
Add a top-level
transformer_engine.test()entry point, similar tonumpy.test(). It runs a small set of smoke checks:te.Linearforwardpass on the current device, reporting the device compute capability and which
low-precision formats it supports. Checks that need a GPU are skipped when no
CUDA device is present, so the call is safe to run anywhere.
It prints the result of each check and returns
Trueif every executed checkpassed.
Closes #170