Skip to content

Commit af5d1e0

Browse files
[JAX] Fix L0_jax_unittest docs example test to enforce single-GPU (NVIDIA#3059)
Update test.sh Signed-off-by: jberchtold-nvidia <158520091+jberchtold-nvidia@users.noreply.github.com> Co-authored-by: Teddy Do <tdophung@nvidia.com>
1 parent f8bda5d commit af5d1e0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

qa/L0_jax_unittest/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ NVTE_JAX_CUSTOM_CALLS="false" python3 -m pytest -c $TE_PATH/tests/jax/pytest.ini
4545
# Exercise the docs/examples/jax tutorials. The multi-GPU tests are
4646
# skipped at runtime when fewer than 4 devices are visible, so this is safe on
4747
# single-GPU runners.
48-
python3 -m pytest -c $TE_PATH/tests/jax/pytest.ini -v --junitxml=$XML_LOG_DIR/pytest_docs_examples_jax.xml $TE_PATH/docs/examples/jax/ || test_fail "docs/examples/jax"
48+
CUDA_VISIBLE_DEVICES=0 python3 -m pytest -c $TE_PATH/tests/jax/pytest.ini -v --junitxml=$XML_LOG_DIR/pytest_docs_examples_jax.xml $TE_PATH/docs/examples/jax/ || test_fail "docs/examples/jax"
4949

5050
if [ $RET -ne 0 ]; then
5151
echo "Error: some sub-tests failed: $FAILED_CASES"

0 commit comments

Comments
 (0)