@@ -225,36 +225,6 @@ jobs:
225
225
docker run --gpus all --ipc=host -v $(pwd):/remote -w /remote ${VARS_TO_PASS} ${DOCKER_IMAGE} ./packaging/build_conda.sh
226
226
227
227
binary_win_conda:
228
- <<: *binary_common
229
- executor: windows-cpu
230
- steps:
231
- - checkout_merge
232
- - run:
233
- command: |
234
- set -ex
235
- source packaging/windows/internal/vc_install_helper.sh
236
- eval "$('/C/tools/miniconda3/Scripts/conda.exe' 'shell.bash' 'hook')"
237
- conda activate base
238
- conda install -yq conda-build "conda-package-handling!=1.5.0"
239
- packaging/build_conda.sh
240
- - store_test_results:
241
- path: build_results/
242
-
243
- binary_win_conda_cuda:
244
- <<: *binary_common
245
- executor: windows-gpu
246
- steps:
247
- - checkout_merge
248
- - run:
249
- command: |
250
- set -ex
251
- source packaging/windows/internal/vc_install_helper.sh
252
- eval "$('/C/tools/miniconda3/Scripts/conda.exe' 'shell.bash' 'hook')"
253
- conda activate base
254
- conda install -yq conda-build "conda-package-handling!=1.5.0"
255
- packaging/build_conda.sh
256
-
257
- binary_win_conda_release:
258
228
<<: *binary_common
259
229
executor: windows-cpu
260
230
steps:
@@ -279,7 +249,7 @@ jobs:
279
249
- store_test_results:
280
250
path: build_results/
281
251
282
- binary_win_wheel_release :
252
+ binary_win_wheel :
283
253
<<: *binary_common
284
254
executor: windows-cpu
285
255
steps:
@@ -385,34 +355,182 @@ jobs:
385
355
aws s3 cp "$pkg" "s3://pytorch/whl/${UPLOAD_CHANNEL}/<< parameters.subfolder >>" --acl public-read
386
356
done
387
357
358
+ unittest_linux_cpu:
359
+ <<: *binary_common
360
+ docker:
361
+ - image: "pytorch/manylinux-cuda102"
362
+ resource_class: 2xlarge+
363
+ steps:
364
+ - checkout
365
+ - run:
366
+ name: Generate cache key
367
+ # This will refresh cache on Sundays, nightly build should generate new cache.
368
+ command: echo "$(date +"%Y-%U")" > .circleci-weekly
369
+ - restore_cache:
370
+ {% raw %}
371
+ keys:
372
+ - env-v2-linux-{{ arch }}-py<< parameters.python_version >>-{{ checksum ".circleci/unittest/linux/scripts/environment.yml" }}-{{ checksum ".circleci-weekly" }}
373
+ {% endraw %}
374
+ - run:
375
+ name: Setup
376
+ command: .circleci/unittest/linux/scripts/setup_env.sh
377
+ - save_cache:
378
+ {% raw %}
379
+ key: env-v2-linux-{{ arch }}-py<< parameters.python_version >>-{{ checksum ".circleci/unittest/linux/scripts/environment.yml" }}-{{ checksum ".circleci-weekly" }}
380
+ {% endraw %}
381
+ paths:
382
+ - conda
383
+ - env
384
+ - run:
385
+ name: Install torchvision
386
+ command: .circleci/unittest/linux/scripts/install.sh
387
+ - run:
388
+ name: Run tests
389
+ command: .circleci/unittest/linux/scripts/run_test.sh
390
+ - run:
391
+ name: Post process
392
+ command: .circleci/unittest/linux/scripts/post_process.sh
393
+ - store_test_results:
394
+ path: test-results
395
+
396
+ unittest_linux_gpu:
397
+ <<: *binary_common
398
+ machine:
399
+ image: ubuntu-1604-cuda-10.1:201909-23
400
+ resource_class: gpu.small
401
+ environment:
402
+ image_name: "pytorch/manylinux-cuda101"
403
+ steps:
404
+ - checkout
405
+ - run:
406
+ name: Generate cache key
407
+ # This will refresh cache on Sundays, nightly build should generate new cache.
408
+ command: echo "$(date +"%Y-%U")" > .circleci-weekly
409
+ - restore_cache:
410
+ {% raw %}
411
+ keys:
412
+ - env-v2-linux-{{ arch }}-py<< parameters.python_version >>-{{ checksum ".circleci/unittest/linux/scripts/environment.yml" }}-{{ checksum ".circleci-weekly" }}
413
+ {% endraw %}
414
+ - run:
415
+ name: Setup
416
+ command: docker run -t --gpus all -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/setup_env.sh
417
+ - save_cache:
418
+ {% raw %}
419
+ key: env-v2-linux-{{ arch }}-py<< parameters.python_version >>-{{ checksum ".circleci/unittest/linux/scripts/environment.yml" }}-{{ checksum ".circleci-weekly" }}
420
+ {% endraw %}
421
+ paths:
422
+ - conda
423
+ - env
424
+ - run:
425
+ name: Install torchvision
426
+ command: docker run -t --gpus all -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/install.sh
427
+ - run:
428
+ name: Run tests
429
+ command: docker run -t --gpus all -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/run_test.sh
430
+ - run:
431
+ name: Post Process
432
+ command: docker run -t --gpus all -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/post_process.sh
433
+ - store_test_results:
434
+ path: test-results
435
+
436
+ unittest_windows_cpu:
437
+ <<: *binary_common
438
+ executor:
439
+ name: windows-cpu
440
+ steps:
441
+ - checkout
442
+ - run:
443
+ name: Generate cache key
444
+ # This will refresh cache on Sundays, nightly build should generate new cache.
445
+ command: echo "$(date +"%Y-%U")" > .circleci-weekly
446
+ - restore_cache:
447
+ {% raw %}
448
+ keys:
449
+ - env-v2-windows-{{ arch }}-py<< parameters.python_version >>-{{ checksum ".circleci/unittest/windows/scripts/environment.yml" }}-{{ checksum ".circleci-weekly" }}
450
+ {% endraw %}
451
+ - run:
452
+ name: Setup
453
+ command: .circleci/unittest/windows/scripts/setup_env.sh
454
+ - save_cache:
455
+ {% raw %}
456
+ key: env-v2-windows-{{ arch }}-py<< parameters.python_version >>-{{ checksum ".circleci/unittest/windows/scripts/environment.yml" }}-{{ checksum ".circleci-weekly" }}
457
+ {% endraw %}
458
+ paths:
459
+ - conda
460
+ - env
461
+ - run:
462
+ name: Install torchvision
463
+ command: .circleci/unittest/windows/scripts/install.sh
464
+ - run:
465
+ name: Run tests
466
+ command: .circleci/unittest/windows/scripts/run_test.sh
467
+ - run:
468
+ name: Post process
469
+ command: .circleci/unittest/windows/scripts/post_process.sh
470
+ - store_test_results:
471
+ path: test-results
472
+
473
+ unittest_windows_gpu:
474
+ <<: *binary_common
475
+ executor:
476
+ name: windows-gpu
477
+ environment:
478
+ CUDA_VERSION: "10.1"
479
+ steps:
480
+ - checkout
481
+ - run:
482
+ name: Generate cache key
483
+ # This will refresh cache on Sundays, nightly build should generate new cache.
484
+ command: echo "$(date +"%Y-%U")" > .circleci-weekly
485
+ - restore_cache:
486
+ {% raw %}
487
+ keys:
488
+ - env-v1-windows-{{ arch }}-py<< parameters.python_version >>-{{ checksum ".circleci/unittest/windows/scripts/environment.yml" }}-{{ checksum ".circleci-weekly" }}
489
+ {% endraw %}
490
+ - run:
491
+ name: Setup
492
+ command: .circleci/unittest/windows/scripts/setup_env.sh
493
+ - save_cache:
494
+ {% raw %}
495
+ key: env-v1-windows-{{ arch }}-py<< parameters.python_version >>-{{ checksum ".circleci/unittest/windows/scripts/environment.yml" }}-{{ checksum ".circleci-weekly" }}
496
+ {% endraw %}
497
+ paths:
498
+ - conda
499
+ - env
500
+ - run:
501
+ name: Install torchvision
502
+ command: .circleci/unittest/windows/scripts/install.sh
503
+ - run:
504
+ name: Run tests
505
+ command: .circleci/unittest/windows/scripts/run_test.sh
506
+ - run:
507
+ name: Post process
508
+ command: .circleci/unittest/windows/scripts/post_process.sh
509
+ - store_test_results:
510
+ path: test-results
388
511
389
512
workflows:
390
513
build:
391
514
{%- if True %}
392
515
jobs:
393
516
- circleci_consistency
394
- {{ workflows (windows_latest_only=True) }}
517
+ {{ build_workflows (windows_latest_only=True) }}
395
518
- binary_linux_conda_cuda:
396
519
name: torchvision_linux_py3.8_cu102_cuda
397
520
python_version: "3.8"
398
521
cu_version: "cu102"
399
- - binary_win_conda:
400
- name: torchvision_win_py3.6_cpu
401
- python_version: "3.6"
402
- cu_version: "cpu"
403
- - binary_win_conda_cuda:
404
- name: torchvision_win_py3.6_cu101
405
- python_version: "3.6"
406
- cu_version: "cu101"
407
522
- python_lint
408
523
- python_type_check
409
524
- clang_format
410
525
526
+ unittest:
527
+ jobs:
528
+ {{ unittest_workflows() }}
411
529
nightly:
412
530
{%- endif %}
413
531
jobs:
414
532
- circleci_consistency
415
533
- python_lint
416
534
- python_type_check
417
535
- clang_format
418
- {{ workflows (prefix="nightly_", filter_branch="nightly", upload=True) }}
536
+ {{ build_workflows (prefix="nightly_", filter_branch="nightly", upload=True) }}
0 commit comments