.ecp-ci.yml 1.86 KB
Newer Older
1 2
variables:
  NMC_FE1_SLURM_PARAMETERS: "--nodes=1 --partition=ecp-p9-4v100"
3 4
  ANL_THETA_PROJECT_SERVICE_USER: "cscstss"
  ANL_THETA_SCHEDULER_PARAMETERS: "-A CSC250STPR19 -n 1 -t 20 -q debug-flat-quad"
5 6 7 8 9 10 11 12 13

stages:
  - build

nmc:batch:env:
  stage: build
  tags:
    - nmc
  only:
14 15 16 17 18
    refs:
      - master
      - staging
    variables:
      - $ECP_MIRROR == "NMC"
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
  script:
    - uname -a
    - module avail
    - lspci
    - module load hwloc numactl cuda
    - module avail
    - lstopo
    - env
    - which gcc
    - gcc --version
    - compgen -c gcc

make:nmc-cuda-check:
  stage: build
  tags:
    - nmc
  only:
36 37 38 39 40
    refs:
      - master
      - staging
    variables:
      - $ECP_MIRROR == "NMC"
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
  script:
    - module load numactl hwloc cuda
    - env | grep -i cuda
    - cat /proc/self/status
    - ./autogen.sh
    - ./configure
    - make -j
    - make check VERBOSE=1
  artifacts:
    when: on_failure
    paths:
      - tests/test-suite.log
      - config.log

make:nmc-cuda-home:
  stage: build
  tags:
    - nmc
  only:
60 61 62 63 64
    refs:
      - master
      - staging
    variables:
      - $ECP_MIRROR == "NMC"
65 66 67 68 69 70 71 72 73 74 75 76
  script:
    - module load numactl hwloc cuda
    - env | grep -i cuda
    - ./autogen.sh
    - ./configure --with-cuda=$CUDA_HOME
    - make -j
    - make check VERBOSE=1
  artifacts:
    when: on_failure
    paths:
      - tests/test-suite.log
      - config.log
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106

make:theta-batch:
  stage: build
  tags:
    - ecp-theta
    - batch
  only:
    refs:
      - master
      - staging
    variables:
      - $ECP_MIRROR == "THETA"
  script:
    - |
      cat > aml-ci-script.sh << EOF
      #!/bin/bash
      module list
      ./autogen.sh
      ./configure
      make -j63
      make check VERBOSE=1
      EOF
    - cat aml-ci-script.sh
    - chmod +x aml-ci-script.sh
    - aprun aml-ci-script.sh
  artifacts:
    when: on_failure
    paths:
      - tests/*.log
      - config.log