Skip to content

Commit

Permalink
Run smoke_test_linalg during check_binary
Browse files Browse the repository at this point in the history
This is a regression test for pytorch/pytorch#114862
  • Loading branch information
malfet committed Dec 10, 2023
1 parent 4f298cb commit 70d5c5f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions check_binary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,18 @@ if [[ "$DESIRED_CUDA" != 'cpu' && "$DESIRED_CUDA" != 'cpu-cxx11-abi' && "$DESIRE
fi # if libtorch
fi # if cuda

##########################
# Run parts of smoke tests
##########################
if [[ "$PACKAGE_TYPE" != 'libtorch' ]]; then
pushd test/smoke_test
python -c "from smoke_test import test_linalg; test_linalg()"
if [[ "$DESIRED_CUDA" == *cuda* ]]; then
python -c "from smoke_test import test_linalg; test_linalg('cuda')"
fi
popd
fi

###############################################################################
# Check PyTorch supports TCP_TLS gloo transport
###############################################################################
Expand Down

0 comments on commit 70d5c5f

Please sign in to comment.