Guest User

Untitled

a guest
Apr 25th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. if [[ "$BUILD_ENVIRONMENT" == "pytorch-linux-xenial-py3-clang5-asan" ]]; then
  4. exec "$(dirname "${BASH_SOURCE[0]}")/build-asan.sh" $*
  5. fi
  6.  
  7. # Add nccl2 for distributed test.
  8. apt-get install libnccl-dev libnccl2
  9.  
  10. # Required environment variable: $BUILD_ENVIRONMENT
  11. # (This is set by default in the Docker images we build, so you don't
  12. # need to set it yourself.
  13.  
  14. COMPACT_JOB_NAME="${BUILD_ENVIRONMENT}-build"
  15. source "$(dirname "${BASH_SOURCE[0]}")/common.sh"
  16.  
  17. echo "Python version:"
  18. python --version
  19.  
  20. echo "GCC version:"
  21. gcc --version
  22.  
  23. # TODO: Don't run this...
  24. pip install -r requirements.txt || true
  25.  
  26. if ! which conda; then
  27. pip install mkl mkl-devel
  28. fi
  29.  
  30. # Test ATen
  31. if [[ "$BUILD_ENVIRONMENT" != *cuda* ]]; then
  32. echo "Testing ATen"
  33. time NO_CUDA=1 tools/run_aten_tests.sh
  34. fi
Add Comment
Please, Sign In to add comment