Skip to content

Commit

Permalink
[validations] Perform test_ops only on CUDA binaries (#1657)
Browse files Browse the repository at this point in the history
  • Loading branch information
atalman authored Dec 29, 2023
1 parent b91724c commit f1e19a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/validate_binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ else
export PATH=${OLD_PATH}
fi

if [[ ${INCLUDE_TEST_OPS} == 'true' ]]; then
if [[ ${INCLUDE_TEST_OPS} == 'true' && ${MATRIX_GPU_ARCH_TYPE} == 'cuda' ]]; then
source ./.github/scripts/validate_test_ops.sh
fi

Expand Down
4 changes: 2 additions & 2 deletions .github/scripts/validate_test_ops.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ retry git clone ${BRANCH} --depth 1 https://github.com/pytorch/pytorch.git
retry git submodule update --init --recursive
pushd pytorch

pip install expecttest numpy pyyaml jinja2 packaging xmlrunner hypothesis unittest-xml-reporting
pip install expecttest numpy pyyaml jinja2 packaging hypothesis unittest-xml-reporting

# Run test_ops validation
export CUDA_LAUNCH_BLOCKING=1
python3 test/test_ops.py
python3 test/test_ops.py TestCommonCUDA

0 comments on commit f1e19a7

Please sign in to comment.