Skip to content
Snippets Groups Projects
.gitlab-ci.yml 979 B
Newer Older
  • Learn to ignore specific revisions
  • Yifan Zhao's avatar
    Yifan Zhao committed
    image: hpvm/gitlab-ci
    
    variables:
      GIT_SUBMODULE_STRATEGY: recursive
    
    Yifan Zhao's avatar
    Yifan Zhao committed
      # Use a better compressor
      FF_USE_FASTZIP: "true"
      # output upload and download progress every 2 seconds
      TRANSFER_METER_FREQUENCY: "2s"
      # Use no compression for artifacts
      CACHE_COMPRESSION_LEVEL: "fastest"
    cache:
      key: "$CI_COMMIT_REF_SLUG"
      paths:
        - hpvm/build/
        - hpvm/llvm/
    
    Yifan Zhao's avatar
    Yifan Zhao committed
      when: always
    
    Yifan Zhao's avatar
    Yifan Zhao committed
    build-and-test:
    
    Yifan Zhao's avatar
    Yifan Zhao committed
      stage: build
      tags:
        - hpvm
      script:
    
    Yifan Zhao's avatar
    Yifan Zhao committed
        - source activate hpvm && cd hpvm
    
    Yifan Zhao's avatar
    Yifan Zhao committed
        - mv /root/cfe-9.0.0.src.tar.xz /root/llvm-9.0.0.src.tar.xz ./
        - mv /root/model_params ./test/dnn_benchmarks
    
    Yifan Zhao's avatar
    Yifan Zhao committed
        - ./install.sh -j32 -t "X86" DCMAKE_BUILD_TYPE=Release
    
    Yifan Zhao's avatar
    Yifan Zhao committed
        - cd build
        - make -j32 check-hpvm-pass
    
        - make -j32 check-hpvm-tensor-rt
    
    Yifan Zhao's avatar
    Yifan Zhao committed
        - make -j32 check-hpvm-dnn
    
        - make -j32 check-hpvm-keras-acc
    
        - make -j32 check-hpvm-torch-acc
        - make -j32 check-hpvm-torch-profiling
        - make -j32 check-hpvm-torch-tuning
    
    Yifan Zhao's avatar
    Yifan Zhao committed
      only:
    
    Yifan Zhao's avatar
    Yifan Zhao committed
        - hpvm-release-exp
        - merge_requests