config.yml 18.2 KB
Newer Older
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
1
2
3
4
5
6
# Python CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-python/ for more details
#
# Adopted from
# https://github.com/facebookresearch/detectron2/blob/master/.circleci/config.yml
7
8
#
# Pro tip: download circle ci cli to validate the config locally during development.
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
9

Min Xu's avatar
Min Xu committed
10
version: 2.1
11
12
orbs:
  codecov: codecov/codecov@1.0.2
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
13
14
15
# -------------------------------------------------------------------------------------
# Environments to run the jobs in
# -------------------------------------------------------------------------------------
16
cpu_py37: &cpu_py37
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
17
18
  docker:
    - image: circleci/python:3.7
19
  resource_class: large
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
20

21
22
23
cpu_py38: &cpu_py38
  docker:
    - image: circleci/python:3.8
24
  resource_class: large
25
26
27
28

cpu_py39: &cpu_py39
  docker:
    - image: circleci/python:3.9
29
  resource_class: large
30

31
32
# Here are list of GPU images:
#   https://circleci.com/docs/2.0/configuration-reference/#available-linux-gpu-images
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
33
34
35
gpu: &gpu
  environment:
    CUDA_VERSION: "10.1"
36
    CUDA_HOME: /usr/local/cuda-10.1
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
37
38
39
40
  machine:
    image: ubuntu-1604-cuda-10.1:201909-23
  resource_class: gpu.large

41
42
43
gpu_cu111: &gpu_cu111
  environment:
    CUDA_VERSION: "11.1"
44
    CUDA_HOME: /usr/local/cuda-11.1
45
46
47
48
  machine:
    image: ubuntu-1604-cuda-11.1:202012-01
  resource_class: gpu.large

Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# -------------------------------------------------------------------------------------
# Re-usable commands
# -------------------------------------------------------------------------------------
setup_venv: &setup_venv
  - run:
      name: Setup Virtual Env
      working_directory: ~/
      command: |
        python -m venv ~/venv
        echo ". ~/venv/bin/activate" >> $BASH_ENV
        . ~/venv/bin/activate
        python --version
        which python
        which pip
        pip install --upgrade pip

65
install_dep_160: &install_dep_160
66
  - run:
67
      name: Install Dependencies with torch 1.6.0
68
      command: |
69
        # check if we have restored venv cache (/home/circleci/venv) correctly, if so, just skip
Min Xu's avatar
Min Xu committed
70
        if [ -f /home/circleci/venv/check_version.py ]; then python /home/circleci/venv/check_version.py torch eq 1.6 && exit 0; fi
71
        # start installing
72
        pip install --progress-bar off torch==1.6.0+cu101 torchvision==0.7.0+cu101 -f https://download.pytorch.org/whl/torch_stable.html
73
        pip install --progress-bar off -r requirements-test.txt
74
        pip install --progress-bar off -r requirements-benchmarks.txt
75
        python -c 'import torch; print("Torch version:", torch.__version__)'
76
        python -c 'import torch; assert torch.__version__.split(".")[:2] == ["1", "6"], "wrong torch version"'
77
        python -m torch.utils.collect_env
Min Xu's avatar
Min Xu committed
78
        wget -O /home/circleci/venv/check_version.py https://raw.githubusercontent.com/min-xu-ai/check_verion/main/check_version.py
79

80
install_dep_171: &install_dep_171
81
  - run:
82
      name: Install Dependencies with torch 1.7.1
83
      command: |
84
        # check if we have restored venv cache (/home/circleci/venv) correctly, if so, just skip
Min Xu's avatar
Min Xu committed
85
        if [ -f /home/circleci/venv/check_version.py ]; then python /home/circleci/venv/check_version.py torch eq 1.7 && exit 0; fi
86
        # start installing
87
88
89
90
91
92
        pip install --progress-bar off torch==1.7.1+cu110 torchvision==0.8.2+cu110 -f https://download.pytorch.org/whl/torch_stable.html
        pip install --progress-bar off -r requirements-test.txt
        pip install --progress-bar off -r requirements-benchmarks.txt
        python -c 'import torch; print("Torch version:", torch.__version__)'
        python -c 'import torch; assert torch.__version__.split(".")[:2] == ["1", "7"], "wrong torch version"'
        python -m torch.utils.collect_env
Min Xu's avatar
Min Xu committed
93
        wget -O /home/circleci/venv/check_version.py https://raw.githubusercontent.com/min-xu-ai/check_verion/main/check_version.py
94

95
install_dep_181: &install_dep_181
96
  - run:
97
      name: Install Dependencies with torch 1.8.1
98
      command: |
99
        # check if we have restored venv cache (/home/circleci/venv) correctly, if so, just skip
Min Xu's avatar
Min Xu committed
100
        if [ -f /home/circleci/venv/check_version.py ]; then python /home/circleci/venv/check_version.py torch eq 1.8 && exit 0; fi
101
        # start installing
102
        pip install --progress-bar off torch==1.8.1+cu101 torchvision==0.9.1+cu101 -f https://download.pytorch.org/whl/torch_stable.html
103
        pip install --progress-bar off -r requirements-test.txt
104
        pip install --progress-bar off -r requirements-benchmarks.txt
105
106
107
        python -c 'import torch; print("Torch version:", torch.__version__)'
        python -c 'import torch; assert torch.__version__.split(".")[:2] == ["1", "8"], "wrong torch version"'
        python -m torch.utils.collect_env
Min Xu's avatar
Min Xu committed
108
        wget -O /home/circleci/venv/check_version.py https://raw.githubusercontent.com/min-xu-ai/check_verion/main/check_version.py
109

110
111
112
113
114
115
116
install_dep_190: &install_dep_190
  - run:
      name: Install Dependencies with torch 1.9.0
      command: |
        # check if we have restored venv cache (/home/circleci/venv) correctly, if so, just skip
        if [ -f /home/circleci/venv/check_version.py ]; then python /home/circleci/venv/check_version.py torch eq 1.8 && exit 0; fi
        # start installing
117
        pip install --pre --progress-bar off torch==1.9.0.dev20210415+cu101 torchvision==0.10.0.dev20210415+cu101 -f https://download.pytorch.org/whl/nightly/cu101/torch_nightly.html
118
119
120
121
122
123
124
        pip install --progress-bar off -r requirements-test.txt
        pip install --progress-bar off -r requirements-benchmarks.txt
        python -c 'import torch; print("Torch version:", torch.__version__)'
        python -c 'import torch; assert torch.__version__.split(".")[:2] == ["1", "9"], "wrong torch version"'
        python -m torch.utils.collect_env
        wget -O /home/circleci/venv/check_version.py https://raw.githubusercontent.com/min-xu-ai/check_verion/main/check_version.py

125
install_repo: &install_repo
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
126
127
128
  - run:
      name: Install Repository
      command: |
129
130
131
        pip install .
        # Test import.
        python -c 'import sys; sys.path = sys.path[1:]; import fairscale'
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
132

133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
run_isort: &run_isort
   - run:
       name: Run Linter (isort)
       command: |
         isort . --check

run_black: &run_black
   - run:
       name: Run Linter (black)
       command: |
         black --check .

run_mypy: &run_mypy
   - run:
       name: Run type-checking (mypy)
       command: |
         mypy --ignore-missing-imports --scripts-are-modules --pretty .

run_flake8: &run_flake8
  - run:
      name: Run Linter (flake8)
      command: |
        flake8 --show-source --statistics

157
158
159
160
161
162
check_test_list: &check_test_list
  - run:
      name: Verify that unit test list files are correct
      command: |
        bash ./tests/ci_test_list_check.sh

163

164
165
166
167
upload_coverage: &upload_coverage
  - codecov/upload:
      file: 'coverage.xml'
      token: $CODECOV_TOKEN
msbaines's avatar
msbaines committed
168

169
170
171
172
run_offload_benchmark: &run_offload_benchmark
  - run:
      name: Run Offload Benchmark
      command: |
173
        python benchmarks/experimental/offload.py --checkpoint_activation
174

Jun Ru Anderson's avatar
Jun Ru Anderson committed
175
run_pipe_benchmark: &run_pipe_benchmark
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
176
  - run:
Jun Ru Anderson's avatar
Jun Ru Anderson committed
177
      name: Run Pipe Benchmark
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
178
      command: |
Jun Ru Anderson's avatar
Jun Ru Anderson committed
179
        python benchmarks/pipe.py
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
180

181
182
183
184
run_oss_benchmark: &run_oss_benchmark
  - run:
      name: Run OSS Benchmark
      command: |
185
        python benchmarks/oss.py --world_size 4 --epochs 2
186
        python benchmarks/oss.py --check_regression --world_size 4 --optim_type oss_sharded_ddp
187
188

run_oss_gloo: &run_oss_gloo
189
190
191
192
193
194
  - run:
      name: Run OSS with Gloo
      command: |
        python benchmarks/oss.py --gloo --optim_type oss_ddp --epochs 2
        python benchmarks/oss.py --gloo --optim_type oss_sharded_ddp --epochs 2

195
run_oss_amp: &run_oss_amp
196
197
198
199
200
   - run:
       name: Run OSS with Torch AMP
       command: |
         python benchmarks/oss.py --amp --epochs 3 --optim_type oss_sharded_ddp

201
202
203
204
205
206
run_oss_for_each: &run_oss_for_each
   - run:
       name: Run OSS with Torch AMP and ForEach optmizer
       command: |
         python benchmarks/oss.py --amp --epochs 3 --optim_type oss_sharded_ddp --multi_tensor_optim

207
208
209
210
211
212
213
214
215
216

run_doc_build: &run_doc_build
   - run:
       name: Testing doc build
       command: |
         cd docs
         pip install --progress-bar off -r requirements.txt
         make help
         make singlehtml | tee make.out
         ! tail make.out | grep -q warning
217

218
219
220
221
222
223
# This is an alias to run all unit tests possible on a platform.
run_unittests: &run_unittests
   - run:
       name: Run all unit tests.
       # We run all and not stopping on failure on CPU since docker time is cheaper.
       command: |
224
         pytest --junitxml=test-results/junit.xml --verbose --timeout 60 --cov-report=xml --cov=./
225

Min Xu's avatar
Min Xu committed
226
commands:
227
228
229
230

   # This is a command (like a function) that run tests from a given test_list_file.
   # If test_list_file is not given, this results in an error.
   run_unittests_from_list:
Min Xu's avatar
Min Xu committed
231
     parameters:
232
       test_list_file:
Min Xu's avatar
Min Xu committed
233
         type: string
234
         default: "/dev/non_exist"  # Default to error out
Min Xu's avatar
Min Xu committed
235
236
237
238
     steps:
       - run:
           name: Run Unit Tests
           command: |
239
             if [ ! -f <<parameters.test_list_file>> ]; then exit 1; fi
240
             pytest --junitxml=test-results/junit.xml --verbose --timeout 60 --cov-report=xml --cov=./ `cat <<parameters.test_list_file>>`
Min Xu's avatar
Min Xu committed
241

Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
242
243
244
245
246
# -------------------------------------------------------------------------------------
# Jobs to run
# -------------------------------------------------------------------------------------

jobs:
247
248
  cpu_tests_py37:
    <<: *cpu_py37
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
249
250
251
252
253

    working_directory: ~/fairscale

    steps:
      - checkout
254
      - <<: *check_test_list
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
255
256
257
258
259
      - <<: *setup_venv

      # Cache the venv directory that contains dependencies
      - restore_cache:
          keys:
260
            - cache-key-cpu-py37-181-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
261

262
      - <<: *install_dep_181
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
263
264
265
266

      - save_cache:
          paths:
            - ~/venv
267
          key: cache-key-cpu-py37-181-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
268

269
      - <<: *install_repo
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
270

271
272
273
274
      - <<: *run_isort
      - <<: *run_black
      - <<: *run_mypy
      - <<: *run_flake8
275
      - <<: *run_unittests
276
277
278
279
      - <<: *run_doc_build

      - store_test_results:
          path: test-results
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
280

281
282
  cpu_tests_py38:
    <<: *cpu_py38
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
283

284
    working_directory: ~/fairscale
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
285

286
287
    steps:
      - checkout
288
      - <<: *check_test_list
289
      - <<: *setup_venv
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
290

291
292
293
      # Cache the venv directory that contains dependencies
      - restore_cache:
          keys:
294
295
            - cache-key-cpu-py38-181-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
      - <<: *install_dep_181
296
297
298
299

      - save_cache:
          paths:
            - ~/venv
300
          key: cache-key-cpu-py38-181-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
301

302
      - <<: *install_repo
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
303

304
305
306
307
      - <<: *run_isort
      - <<: *run_black
      - <<: *run_mypy
      - <<: *run_flake8
308
      - <<: *run_unittests
309
      - <<: *run_doc_build
310

Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
311
312
313
      - store_test_results:
          path: test-results

314
315
316
317
318
319
320
  cpu_tests_py39:
    <<: *cpu_py39

    working_directory: ~/fairscale

    steps:
      - checkout
321
      - <<: *check_test_list
322
323
324
325
326
      - <<: *setup_venv

      # Cache the venv directory that contains dependencies
      - restore_cache:
          keys:
327
            - cache-key-cpu-py39-181-0-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
328

329
      - <<: *install_dep_181
330
331
332
333

      - save_cache:
          paths:
            - ~/venv
334
          key: cache-key-cpu-py39-181-0-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
335

336
      - <<: *install_repo
337
338
339
340
341

      - <<: *run_isort
      - <<: *run_black
      - <<: *run_mypy
      - <<: *run_flake8
342
      - <<: *run_unittests
343
344
345
346
347
348
      - <<: *run_doc_build

      - store_test_results:
          path: test-results


349
  gpu_tests_160:
Min Xu's avatar
Min Xu committed
350
    parameters:
351
      test_list_file:
Min Xu's avatar
Min Xu committed
352
        type: string
353
        default: "/dev/non_exist"
354

355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
    <<: *gpu

    working_directory: ~/fairscale

    steps:
      - checkout

      - run: nvidia-smi

      - run: pyenv global 3.7.0

      - <<: *setup_venv

      # Cache the venv directory that contains dependencies
      - restore_cache:
          keys:
371
            - cache-key-gpu-160-101-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
372

373
      - <<: *install_dep_160
374
375
376
377

      - save_cache:
          paths:
            - ~/venv
378
          key: cache-key-gpu-160-101-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
379

380
      - <<: *install_repo
381

382
383
      - run_unittests_from_list:
          test_list_file: <<parameters.test_list_file>>
384
385
386

      - store_test_results:
          path: test-results
387

388
      - <<: *upload_coverage
389

390
  gpu_tests_171:
Min Xu's avatar
Min Xu committed
391
    parameters:
392
      test_list_file:
Min Xu's avatar
Min Xu committed
393
        type: string
394
        default: "/dev/non_exist"
Min Xu's avatar
Min Xu committed
395

396
    <<: *gpu_cu111
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
397
398
399
400
401
402
403
404

    working_directory: ~/fairscale

    steps:
      - checkout

      - run: nvidia-smi

405
406
      # Run this to make sure we use python3 from the system.
      - run: pyenv global 3.8.6
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
407
408
409
410
411
412

      - <<: *setup_venv

      # Cache the venv directory that contains dependencies
      - restore_cache:
          keys:
413
            - cache-key-gpu-171-110-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
414

415
      - <<: *install_dep_171
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
416
417
418
419

      - save_cache:
          paths:
            - ~/venv
420
          key: cache-key-gpu-171-110-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
421

422
      - <<: *install_repo
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
423

424
425
      - run_unittests_from_list:
          test_list_file: <<parameters.test_list_file>>
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
426
427
428

      - store_test_results:
          path: test-results
429

430
      - <<: *upload_coverage
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
431

432
  gpu_tests_181:
Min Xu's avatar
Min Xu committed
433
    parameters:
434
      test_list_file:
Min Xu's avatar
Min Xu committed
435
        type: string
436
        default: "/dev/non_exist"
Min Xu's avatar
Min Xu committed
437

438
    <<: *gpu
439
440
441
442
443
444
445
446

    working_directory: ~/fairscale

    steps:
      - checkout

      - run: nvidia-smi

447
      # Run this to make sure we use python3 from the system.
448
      - run: pyenv global 3.7.0
449
450
451
452
453
454

      - <<: *setup_venv

      # Cache the venv directory that contains dependencies
      - restore_cache:
          keys:
455
            - cache-key-gpu-181-101-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
456

457
      - <<: *install_dep_181
458
459
460
461

      - save_cache:
          paths:
            - ~/venv
462
          key: cache-key-gpu-181-101-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
463

464
      - <<: *install_repo
465

466
467
      - run_unittests_from_list:
          test_list_file: <<parameters.test_list_file>>
468
469
470

      - store_test_results:
          path: test-results
471

472
      - <<: *upload_coverage
473

474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
  gpu_tests_190:
    parameters:
      test_list_file:
        type: string
        default: "/dev/non_exist"

    <<: *gpu

    working_directory: ~/fairscale

    steps:
      - checkout

      - run: nvidia-smi

      # Run this to make sure we use python3 from the system.
      - run: pyenv global 3.7.0

      - <<: *setup_venv

      # Cache the venv directory that contains dependencies
      - restore_cache:
          keys:
            - cache-key-gpu-190-101-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}

      - <<: *install_dep_190

      - save_cache:
          paths:
            - ~/venv
          key: cache-key-gpu-190-101-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}

      - <<: *install_repo

      - run_unittests_from_list:
          test_list_file: <<parameters.test_list_file>>

      - store_test_results:
          path: test-results

514
  benchmarks_1:
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
515
516
517
518
519
520
521
522
523
    <<: *gpu

    working_directory: ~/fairscale

    steps:
      - checkout

      - run: nvidia-smi

524
525
526
527
      - run: pyenv uninstall -f 3.7.0

      - run: pyenv install 3.7.0

Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
528
529
530
531
532
533
534
      - run: pyenv global 3.7.0

      - <<: *setup_venv

      # Cache the venv directory that contains dependencies
      - restore_cache:
          keys:
535
            - cache-key-benchmarks-181-101-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
536

537
538
539
540
541
      # Cache the MNIST directory that contains benchmark data
      - restore_cache:
          keys:
            - cache-key-benchmark-MNIST-{{ checksum "benchmarks/datasets/mnist.py"}}

542
      - <<: *install_dep_181
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
543
544
545
546

      - save_cache:
          paths:
            - ~/venv
547
          key: cache-key-benchmarks-181-101-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
548

549
      - <<: *install_repo
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
550

Jun Ru Anderson's avatar
Jun Ru Anderson committed
551
      - <<: *run_pipe_benchmark
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
552

553
554
      - <<: *run_offload_benchmark

555
556
557
      - <<: *run_oss_amp

      - <<: *run_oss_for_each
558

559
560
      - <<: *run_oss_gloo

561
562
563
564
565
      - save_cache:
          paths:
            - /tmp/MNIST
          key: cache-key-benchmark-MNIST-{{ checksum "benchmarks/datasets/mnist.py"}}

566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
  benchmarks_2:
    <<: *gpu

    working_directory: ~/fairscale

    steps:
      - checkout

      - run: nvidia-smi

      - run: pyenv uninstall -f 3.7.0

      - run: pyenv install 3.7.0

      - run: pyenv global 3.7.0

      - <<: *setup_venv

      # Cache the venv directory that contains dependencies
      - restore_cache:
          keys:
587
            - cache-key-benchmarks-181-101-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
588

589
590
591
592
593
594

      # Cache the MNIST directory that contains benchmark data
      - restore_cache:
          keys:
            - cache-key-benchmark-MNIST-{{ checksum "benchmarks/datasets/mnist.py"}}

595
      - <<: *install_dep_181
596
597
598
599

      - save_cache:
          paths:
            - ~/venv
600
          key: cache-key-benchmarks-181-101-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
601

602
      - <<: *install_repo
603
604

      - <<: *run_oss_benchmark
605

606
607
608
609
610
      - save_cache:
          paths:
            - /tmp/MNIST
          key: cache-key-benchmark-MNIST-{{ checksum "benchmarks/datasets/mnist.py"}}

Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
611
612
613
614
615

workflows:
  version: 2
  build:
    jobs:
616
617
618
      - cpu_tests_py37
      - cpu_tests_py38
      - cpu_tests_py39
Min Xu's avatar
Min Xu committed
619
      - gpu_tests_160:
620
          test_list_file: tests/ci_test_list_1.txt
Min Xu's avatar
Min Xu committed
621
      - gpu_tests_171:
622
          test_list_file: tests/ci_test_list_1.txt
623
      - gpu_tests_181:
624
          test_list_file: tests/ci_test_list_1.txt
625
626
      - gpu_tests_190:
          test_list_file: tests/ci_test_list_1.txt
Min Xu's avatar
Min Xu committed
627
      - gpu_tests_160:
628
          test_list_file: tests/ci_test_list_2.txt
Min Xu's avatar
Min Xu committed
629
      - gpu_tests_171:
630
          test_list_file: tests/ci_test_list_2.txt
631
      - gpu_tests_181:
632
          test_list_file: tests/ci_test_list_2.txt
633
634
      - gpu_tests_190:
          test_list_file: tests/ci_test_list_2.txt
Min Xu's avatar
Min Xu committed
635
      - gpu_tests_160:
636
          test_list_file: tests/ci_test_list_3.txt
Min Xu's avatar
Min Xu committed
637
      - gpu_tests_171:
638
          test_list_file: tests/ci_test_list_3.txt
639
      - gpu_tests_181:
640
          test_list_file: tests/ci_test_list_3.txt
641
642
      - gpu_tests_190:
          test_list_file: tests/ci_test_list_3.txt
643
644
      - benchmarks_1
      - benchmarks_2