# Copyright (c) 2022-2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # See LICENSE for license information. set -x : ${THUNDER_PATH:=/opt/pytorch/lightning-thunder} pip3 install pytest==8.1.1 pytest-benchmark==5.1.0 python3 -m pytest -v -s ${THUNDER_PATH}/thunder/tests/test_transformer_engine_executor.py # Check return code # Note: Return code 5 is fine. Lightning tests are skipped on systems # without FP8 support and Pytest returns 5 if no tests are run. RC=$? if [ ${RC} -eq 5 ]; then RC=0 fi exit ${RC}