config.yml 18.5 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
gpu: &gpu
  environment:
35
36
    CUDA_VERSION: "10.2"
    CUDA_HOME: /usr/local/cuda-10.2
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
37
  machine:
38
    image: ubuntu-1604-cuda-10.2:202012-01
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
39
40
  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 --progress-bar off install torch==1.9.0+cu102 torchvision==0.10.0+cu102 -f https://download.pytorch.org/whl/torch_stable.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

242
243
244
245
246
247
248
249
250
251
252
253
254
   setup_pyenv:
     parameters:
       version:
         type: string
     steps:
       - run:
           name: Setup pyenv
           command: |
             git clone git://github.com/pyenv/pyenv-update.git $(pyenv root)/plugins/pyenv-update
             pyenv update
             pyenv install -f <<parameters.version>>
             pyenv global <<parameters.version>>

Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
255
256
257
258
259
# -------------------------------------------------------------------------------------
# Jobs to run
# -------------------------------------------------------------------------------------

jobs:
260
261
  cpu_tests_py37:
    <<: *cpu_py37
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
262
263
264
265
266

    working_directory: ~/fairscale

    steps:
      - checkout
267
      - <<: *check_test_list
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
268
269
270
271
272
      - <<: *setup_venv

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

275
      - <<: *install_dep_181
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
276
277
278
279

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

282
      - <<: *install_repo
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
283

284
285
286
287
      - <<: *run_isort
      - <<: *run_black
      - <<: *run_mypy
      - <<: *run_flake8
288
      - <<: *run_unittests
289
290
291
292
      - <<: *run_doc_build

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

294
295
  cpu_tests_py38:
    <<: *cpu_py38
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
296

297
    working_directory: ~/fairscale
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
298

299
300
    steps:
      - checkout
301
      - <<: *check_test_list
302
      - <<: *setup_venv
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
303

304
305
306
      # Cache the venv directory that contains dependencies
      - restore_cache:
          keys:
307
308
            - cache-key-cpu-py38-181-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
      - <<: *install_dep_181
309
310
311
312

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

315
      - <<: *install_repo
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
316

317
318
319
320
      - <<: *run_isort
      - <<: *run_black
      - <<: *run_mypy
      - <<: *run_flake8
321
      - <<: *run_unittests
322
      - <<: *run_doc_build
323

Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
324
325
326
      - store_test_results:
          path: test-results

327
328
329
330
331
332
333
  cpu_tests_py39:
    <<: *cpu_py39

    working_directory: ~/fairscale

    steps:
      - checkout
334
      - <<: *check_test_list
335
336
337
338
339
      - <<: *setup_venv

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

342
      - <<: *install_dep_181
343
344
345
346

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

349
      - <<: *install_repo
350
351
352
353
354

      - <<: *run_isort
      - <<: *run_black
      - <<: *run_mypy
      - <<: *run_flake8
355
      - <<: *run_unittests
356
357
358
359
360
361
      - <<: *run_doc_build

      - store_test_results:
          path: test-results


362
  gpu_tests_160:
Min Xu's avatar
Min Xu committed
363
    parameters:
364
      test_list_file:
Min Xu's avatar
Min Xu committed
365
        type: string
366
        default: "/dev/non_exist"
367

368
369
370
371
372
373
374
375
376
    <<: *gpu

    working_directory: ~/fairscale

    steps:
      - checkout

      - run: nvidia-smi

377
378
      - setup_pyenv:
          version: 3.7.0
379
380
381
382
383
384

      - <<: *setup_venv

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

387
      - <<: *install_dep_160
388
389
390
391

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

394
      - <<: *install_repo
395

396
397
      - run_unittests_from_list:
          test_list_file: <<parameters.test_list_file>>
398
399
400

      - store_test_results:
          path: test-results
401

402
      - <<: *upload_coverage
403

404
  gpu_tests_171:
Min Xu's avatar
Min Xu committed
405
    parameters:
406
      test_list_file:
Min Xu's avatar
Min Xu committed
407
        type: string
408
        default: "/dev/non_exist"
Min Xu's avatar
Min Xu committed
409

410
    <<: *gpu_cu111
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
411
412
413
414
415
416
417
418

    working_directory: ~/fairscale

    steps:
      - checkout

      - run: nvidia-smi

419
      # Run this to make sure we use python3 from the system.
420
421
      - setup_pyenv:
          version: 3.8.6
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
422
423
424
425
426
427

      - <<: *setup_venv

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

430
      - <<: *install_dep_171
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
431
432
433
434

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

437
      - <<: *install_repo
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
438

439
440
      - run_unittests_from_list:
          test_list_file: <<parameters.test_list_file>>
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
441
442
443

      - store_test_results:
          path: test-results
444

445
      - <<: *upload_coverage
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
446

447
  gpu_tests_181:
Min Xu's avatar
Min Xu committed
448
    parameters:
449
      test_list_file:
Min Xu's avatar
Min Xu committed
450
        type: string
451
        default: "/dev/non_exist"
Min Xu's avatar
Min Xu committed
452

453
    <<: *gpu
454
455
456
457
458
459
460
461

    working_directory: ~/fairscale

    steps:
      - checkout

      - run: nvidia-smi

462
      # Run this to make sure we use python3 from the system.
463
464
      - setup_pyenv:
          version: 3.7.0
465
466
467
468
469
470

      - <<: *setup_venv

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

473
      - <<: *install_dep_181
474
475
476
477

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

480
      - <<: *install_repo
481

482
483
      - run_unittests_from_list:
          test_list_file: <<parameters.test_list_file>>
484
485
486

      - store_test_results:
          path: test-results
487

488
      - <<: *upload_coverage
489

490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
  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.
506
507
      - setup_pyenv:
          version: 3.7.0
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530

      - <<: *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

531
  benchmarks_1:
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
532
533
534
535
536
537
538
539
540
    <<: *gpu

    working_directory: ~/fairscale

    steps:
      - checkout

      - run: nvidia-smi

541
542
      - setup_pyenv:
          version: 3.7.0
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
543
544
545
546
547
548

      - <<: *setup_venv

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

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

556
      - <<: *install_dep_181
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
557
558
559
560

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

563
      - <<: *install_repo
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
564

Jun Ru Anderson's avatar
Jun Ru Anderson committed
565
      - <<: *run_pipe_benchmark
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
566

567
568
      - <<: *run_offload_benchmark

569
570
571
      - <<: *run_oss_amp

      - <<: *run_oss_for_each
572

573
574
      - <<: *run_oss_gloo

575
576
577
578
579
      - save_cache:
          paths:
            - /tmp/MNIST
          key: cache-key-benchmark-MNIST-{{ checksum "benchmarks/datasets/mnist.py"}}

580
581
582
583
584
585
586
587
588
589
  benchmarks_2:
    <<: *gpu

    working_directory: ~/fairscale

    steps:
      - checkout

      - run: nvidia-smi

590
591
      - setup_pyenv:
          version: 3.7.0
592
593
594
595
596
597

      - <<: *setup_venv

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

600
601
602
603
604
605

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

606
      - <<: *install_dep_181
607
608
609
610

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

613
      - <<: *install_repo
614
615

      - <<: *run_oss_benchmark
616

617
618
619
620
621
      - save_cache:
          paths:
            - /tmp/MNIST
          key: cache-key-benchmark-MNIST-{{ checksum "benchmarks/datasets/mnist.py"}}

Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
622
623
624
625
626

workflows:
  version: 2
  build:
    jobs:
627
628
629
      - cpu_tests_py37
      - cpu_tests_py38
      - cpu_tests_py39
Min Xu's avatar
Min Xu committed
630
      - gpu_tests_160:
631
          test_list_file: tests/ci_test_list_1.txt
Min Xu's avatar
Min Xu committed
632
      - gpu_tests_171:
633
          test_list_file: tests/ci_test_list_1.txt
634
      - gpu_tests_181:
635
          test_list_file: tests/ci_test_list_1.txt
636
637
      - gpu_tests_190:
          test_list_file: tests/ci_test_list_1.txt
Min Xu's avatar
Min Xu committed
638
      - gpu_tests_160:
639
          test_list_file: tests/ci_test_list_2.txt
Min Xu's avatar
Min Xu committed
640
      - gpu_tests_171:
641
          test_list_file: tests/ci_test_list_2.txt
642
      - gpu_tests_181:
643
          test_list_file: tests/ci_test_list_2.txt
644
645
      - gpu_tests_190:
          test_list_file: tests/ci_test_list_2.txt
Min Xu's avatar
Min Xu committed
646
      - gpu_tests_160:
647
          test_list_file: tests/ci_test_list_3.txt
Min Xu's avatar
Min Xu committed
648
      - gpu_tests_171:
649
          test_list_file: tests/ci_test_list_3.txt
650
      - gpu_tests_181:
651
          test_list_file: tests/ci_test_list_3.txt
652
653
      - gpu_tests_190:
          test_list_file: tests/ci_test_list_3.txt
654
655
      - benchmarks_1
      - benchmarks_2