Skip to content

Commit

Permalink
Enabled xla device in CI. (pytorch#55658)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: pytorch#55658

Fix pytorch#55522.

Test Plan: Imported from OSS

Reviewed By: gmagogsfm

Differential Revision: D27671867

Pulled By: ailzhang

fbshipit-source-id: af8cc5bfe540af6d33d839bf2f2f254290c95da2
  • Loading branch information
Ailing Zhang authored and facebook-github-bot committed Apr 9, 2021
1 parent bbd2b1b commit c7312f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .jenkins/pytorch/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ if [[ "$BUILD_ENVIRONMENT" == *cuda* ]]; then
# Used so that only cuda specific versions of tests are generated
# mainly used so that we're not spending extra cycles testing cpu
# devices on expensive gpu machines
export PYTORCH_TESTING_ONLY_FOR="cuda"
export PYTORCH_TESTING_DEVICE_ONLY_FOR="cuda"
elif [[ "$BUILD_ENVIRONMENT" == *xla* ]]; then
export PYTORCH_TESTING_DEVICE_ONLY_FOR="xla"
fi

if [[ "$BUILD_ENVIRONMENT" == *cuda11* ]]; then
Expand Down

0 comments on commit c7312f5

Please sign in to comment.