You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

azure-pipelines.yml 2.6 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. trigger:
  2. # start a new build for every push
  3. batch: False
  4. branches:
  5. include:
  6. - develop
  7. jobs:
  8. # manylinux1 is useful to test because the
  9. # standard Docker container uses an old version
  10. # of gcc / glibc
  11. - job: manylinux1_gcc
  12. pool:
  13. vmImage: 'ubuntu-16.04'
  14. steps:
  15. - script: |
  16. echo "FROM quay.io/pypa/manylinux1_x86_64
  17. COPY . /tmp/openblas
  18. RUN cd /tmp/openblas && \
  19. COMMON_FLAGS='DYNAMIC_ARCH=1 TARGET=NEHALEM NUM_THREADS=32' && \
  20. BTYPE='BINARY=64' CC=gcc && \
  21. make QUIET_MAKE=1 $COMMON_FLAGS $BTYPE && \
  22. make -C test $COMMON_FLAGS $BTYPE && \
  23. make -C ctest $COMMON_FLAGS $BTYPE && \
  24. make -C utest $COMMON_FLAGS $BTYPE" > Dockerfile
  25. docker build .
  26. displayName: Run manylinux1 docker build
  27. - job: Intel_SDE_skx
  28. pool:
  29. vmImage: 'ubuntu-16.04'
  30. steps:
  31. - script: |
  32. # at the time of writing the available Azure Ubuntu vm image
  33. # does not support AVX512VL, so use more recent LTS version
  34. echo "FROM ubuntu:bionic
  35. COPY . /tmp/openblas
  36. RUN apt-get -y update && apt-get -y install \\
  37. cmake \\
  38. gfortran \\
  39. make \\
  40. wget
  41. RUN mkdir /tmp/SDE && cd /tmp/SDE && \\
  42. mkdir sde-external-8.35.0-2019-03-11-lin && \\
  43. wget --quiet -O sde-external-8.35.0-2019-03-11-lin.tar.bz2 https://www.dropbox.com/s/fopsnzj67572sj5/sde-external-8.35.0-2019-03-11-lin.tar.bz2?dl=0 && \\
  44. tar -xjvf sde-external-8.35.0-2019-03-11-lin.tar.bz2 -C /tmp/SDE/sde-external-8.35.0-2019-03-11-lin --strip-components=1
  45. RUN cd /tmp/openblas && CC=gcc make QUIET_MAKE=1 DYNAMIC_ARCH=1 NUM_THREADS=32 BINARY=64
  46. CMD cd /tmp/openblas && echo 0 > /proc/sys/kernel/yama/ptrace_scope && CC=gcc OPENBLAS_VERBOSE=2 /tmp/SDE/sde-external-8.35.0-2019-03-11-lin/sde64 -cpuid_in /tmp/SDE/sde-external-8.35.0-2019-03-11-lin/misc/cpuid/skx/cpuid.def -- make -C utest DYNAMIC_ARCH=1 NUM_THREADS=32 BINARY=64" > Dockerfile
  47. docker build -t intel_sde .
  48. # we need a privileged docker run for sde process attachment
  49. docker run --privileged intel_sde
  50. displayName: 'Run AVX512 SkylakeX docker build / test'
  51. - job: Windows_cl
  52. pool:
  53. vmImage: 'windows-latest'
  54. steps:
  55. - task: CMake@1
  56. inputs:
  57. workingDirectory: 'build' # Optional
  58. cmakeArgs: '-G "Visual Studio 16 2019" ..'
  59. - task: CMake@1
  60. inputs:
  61. cmakeArgs: '--build . --config Release'
  62. workingDirectory: 'build'
  63. - script: |
  64. cd build
  65. cd utest
  66. dir
  67. openblas_utest.exe