Commit Graph

141 Commits

Author SHA1 Message Date
Michael Suo
b18c95e4a6 [ci] do not run distributed jobs for windows (#73064)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/73064

These accidentally got turned on by https://github.com/pytorch/pytorch/pull/73001. Turn them off.

Test Plan: Imported from OSS

Reviewed By: shannonzhu

Differential Revision: D34332530

Pulled By: suo

fbshipit-source-id: a6493b7d94465fa9141f1527648dbbec09c5706d
2022-02-17 21:17:56 -08:00
Jane Xu (Meta Employee)
ebcd363767 Remove smoke test functionality to simplify infra (#73042)
Summary:
Follow up to https://github.com/pytorch/pytorch/issues/73030

Pull Request resolved: https://github.com/pytorch/pytorch/pull/73042

Test Plan: automation

Reviewed By: seemethere

Differential Revision: D34320855

fbshipit-source-id: c82d2b46b5ad4359cb1436aea503db0ec3e0e956
2022-02-17 16:16:52 -08:00
Michael Suo (Meta Employee)
2072026fe8 [ci] delete generate-test-matrix (#73001)
Summary:
Today, we have two pieces that conspire to determine what workflows we run:
- `generate_ci_workflows.py`, which takes a declarative description of what we want the workflow to do and uses jinja to generate a workflow yaml file
- `generate-test-matrix`, which runs at CI time to dynamically generate test jobs.

This is bad:
- Having one layer of code generation is unfortunate, having two is confusing.
- You cannot tell from a workflow yaml file what test jobs will be run.
- We have to do this careful dance of plumbing the args to `generate-test-matrix` through setting env vars and other such ugliness.
- In cases where the build job fails and prevents `generate-test-matrix` from running, a ghost `test` job that doesn't actually exist noises up the HUD and our stats.
- A bunch of useless `generate-test-matrix` jobs (8 on PRs) noise up our signal.

As far as I can tell, this complexity is unnecessary--we have all the information we need to generate the build matrix statically. There does not appear to be an advantage in retaining generate-build-matrix, so I am removing `generate-test-matrix` to simplify the CI.

The *only* place where we were actually doing something dynamic is in our windows gpu workflow, where we would check at runtime whether the workflow was triggered from a PR or master and behave accordingly. This is more simply done by just having two separate workflows with different trigger conditions, which avoids the madness of needing to parse labels and forking the behavior dynamically, which has been a source of confusion in the past.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/73001

Test Plan: automation

Reviewed By: malfet, seemethere

Differential Revision: D34315415

fbshipit-source-id: 164281a10b0692312e90edebdda174c5175cdfdd
2022-02-17 14:22:48 -08:00
Michael Suo (Meta Employee)
09f88ae68b [ci] switch arm mac jobs to periodic, delete fulljit jobs (#72996)
Summary:
As discussed in #72933

Pull Request resolved: https://github.com/pytorch/pytorch/pull/72996

Test Plan: automation

Reviewed By: malfet, seemethere

Differential Revision: D34311872

fbshipit-source-id: c75d73208952ba56d3b7998043fc46b8efbac88e
2022-02-17 14:19:30 -08:00
Yeounoh Chung
ba14f0ee6c Create a CI workflow for XLA tests using the XLA test image (#72496)
Summary:
This PR resolves https://github.com/pytorch/pytorch/issues/72693

Pull Request resolved: https://github.com/pytorch/pytorch/pull/72496

Reviewed By: H-Huang

Differential Revision: D34255441

Pulled By: seemethere

fbshipit-source-id: fdfd54fbd59ef7266a78c9f729c1d5b6ed25e9d6
2022-02-16 09:59:33 -08:00
Eli Uriegas
f5b1f66f6d ci: Migrate macOS x86_64 binary builds to GHA (#71888)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/71888

Migrates binary builds for x86_64 for macOS from CircleCI to GHA.

Signed-off-by: Eli Uriegas <eliuriegas@fb.com>

Test Plan: Imported from OSS

Reviewed By: janeyx99

Differential Revision: D34150398

Pulled By: seemethere

fbshipit-source-id: 1b439c397d3732418c0958aa1ec6d277ab878e99
2022-02-10 13:08:36 -08:00
wushirong
e3d698a942 Remove fx2trt from oss CI (#72595)
Summary:
Remove fx2trt test from oss CI

Pull Request resolved: https://github.com/pytorch/pytorch/pull/72595

Test Plan: CI

Reviewed By: houseroad

Differential Revision: D34112595

Pulled By: wushirong

fbshipit-source-id: 02376ef0f25381eff31b72dcbf964c1966af9793
2022-02-10 10:43:53 -08:00
Jane Xu
5f1861d777 Revert D33851316: ci: Migrate macOS x86_64 binary builds to GHA
Test Plan: revert-hammer

Differential Revision:
D33851316 (c2e63b43ce)

Original commit changeset: 3c953f0e4e4b

Original Phabricator Diff: D33851316 (c2e63b43ce)

fbshipit-source-id: d95670332bbe44725b589e6d895f99b6d8821024
2022-02-02 20:04:54 -08:00
Eli Uriegas
15de76a6be ci: Migrate macOS x86_64 binary builds to GHA (#71888)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/71888

Migrates binary builds for x86_64 for macOS from CircleCI to GHA.

Signed-off-by: Eli Uriegas <eliuriegas@fb.com>

Test Plan: Imported from OSS

Reviewed By: malfet

Differential Revision: D33851316

Pulled By: seemethere

fbshipit-source-id: 3c953f0e4e4b434f4e0f95156d50484a5b56d0c7
2022-02-02 15:40:41 -08:00
Jeff Daily
72974ae681 enable GHA workflow defaults for ROCm (#72142)
Summary:
Also updates the ROCm per-job health check.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/72142

Reviewed By: ngimel

Differential Revision: D33947337

Pulled By: seemethere

fbshipit-source-id: aaf47f3046d254df9f43a71d168f7b81ae44eeab
2022-02-02 10:26:54 -08:00
Nikita Shulga
8be6e3d1ef ci: Enable tests for iOS on GHA (#71644)
Summary:
These were left out of the intial migration for some reason so this just
transfers over those tests

Signed-off-by: Eli Uriegas <eliuriegasfb.com>

Pull Request resolved: https://github.com/pytorch/pytorch/pull/71644

Signed-off-by: Eli Uriegas <eliuriegas@fb.com>

Test Plan: automation

Reviewed By: dreiss, seemethere

Differential Revision: D33830095

fbshipit-source-id: 2ca39e6ce9d98b0ed23ca5ebfd6a34cb5a48426e
2022-01-27 16:10:12 -08:00
Nikita Shulga
f31bc8a3f0 Revert "Disable XLA config"
Summary:
This reverts commit cda6f40151.

Reverted https://github.com/pytorch/pytorch/pull/71733 on behalf of malfet

Test Plan: automation

Reviewed By: osalpekar

Differential Revision: D33805055

fbshipit-source-id: 1dc186ca4748440ae943cbb457a6d28df8db3bdf
2022-01-27 09:28:52 -08:00
Nikita Shulga
1804fc24ee Revert "Fix lint"
Summary:
This reverts commit 9d47652bee.

Reverted https://github.com/pytorch/pytorch/pull/71735 on behalf of malfet

Test Plan: automation

Reviewed By: osalpekar

Differential Revision: D33805054

fbshipit-source-id: d0d1d23fc61cf5a2e9659b8e178ff3137e5c9eb7
2022-01-27 09:28:49 -08:00
Nikita Shulga
2ccc595344 .github: Exclude rocm from ciflow/all,ciflow/trunk (#71884)
Summary:
Signed-off-by: Eli Uriegas <eliuriegasfb.com>

Pull Request resolved: https://github.com/pytorch/pytorch/pull/71884

Test Plan: automation

Reviewed By: osalpekar

Differential Revision: D33805053

fbshipit-source-id: 9e92025ebf1c007953b1123781fea288806a699f
2022-01-27 09:28:46 -08:00
Eli Uriegas
0339a882c9 .github: Enable windows binary builds (#71484)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/71484

Signed-off-by: Eli Uriegas <eliuriegas@fb.com>

Test Plan: Imported from OSS

Reviewed By: malfet, atalman

Differential Revision: D33800904

Pulled By: seemethere

fbshipit-source-id: 56d0a6e34ac8023745e36ae341efec79384d1dde
2022-01-26 14:27:52 -08:00
Nikita Shulga
87104ed37d Fix lint (#71735)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/71735

Test Plan: automation

Reviewed By: seemethere, bigfootjon

Differential Revision: D33757514

fbshipit-source-id: 431012d05cf29fc9b5c1bd4f4c324b378860d166
2022-01-25 12:30:32 -08:00
Nikita Shulga
b752220ee9 Disable XLA config (#71733)
Summary:
See https://github.com/pytorch/pytorch/issues/71732

Pull Request resolved: https://github.com/pytorch/pytorch/pull/71733

Test Plan: automation

Reviewed By: bigfootjon

Differential Revision: D33757513

fbshipit-source-id: 40fe2502f5967c8caade9ca0a78dd074efb71bed
2022-01-25 12:30:29 -08:00
Michael Suo
5ed8d0dfae remove ciflow_should_run (#70321)
Summary:
This PR implements the workflow changes described in https://fb.quip.com/oi8wAvajpR4g. Combined with the bot logic in d928549336 (can be moved to probot but is easier to test there), it fully implements the proposal.

The CIFlow comment is slightly outdated now but is still technically correct (all the commands will continue to work as before, just through a different mechanism).

Pull Request resolved: https://github.com/pytorch/pytorch/pull/70321

Reviewed By: atalman, janeyx99

Differential Revision: D33690370

Pulled By: suo

fbshipit-source-id: 8d81ffeb249cdae53c5526798a4a504560d0204f
2022-01-20 13:05:26 -08:00
Eli Uriegas
eef2eafffd .github: Set rocm workflows to only run on PRs (#71567)
Summary:
Also adds a mechanism for all workflows to do this

Signed-off-by: Eli Uriegas <eliuriegasfb.com>

cc jeffdaily sunway513 jithunnair-amd ROCmSupport KyleCZH

Pull Request resolved: https://github.com/pytorch/pytorch/pull/71567

Reviewed By: malfet

Differential Revision: D33687713

Pulled By: seemethere

fbshipit-source-id: a3c7ef41ed04f9caa82c180961d2f4b7c24582dd
2022-01-20 11:08:34 -08:00
Jeff Daily
2bb701eb9d add rocm GHA workflow (#68552)
Summary:
cc jeffdaily sunway513 jithunnair-amd ROCmSupport KyleCZH

Pull Request resolved: https://github.com/pytorch/pytorch/pull/68552

Reviewed By: bdhirsh

Differential Revision: D33569551

Pulled By: seemethere

fbshipit-source-id: cc7d68a22ad0eedd4d11eea3cf43a909e5b8616b
2022-01-19 12:14:57 -08:00
Eli Uriegas
598b55fd18 ci: Add PR trigger for binary builds workflows (#71431)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/71431

Adds a PR trigger based on paths to the binary build workflows to make
it easier to test / verify changes to the binary build workflows without
adding a bunch of skipped checks to the majority of our workflows

Signed-off-by: Eli Uriegas <eliuriegas@fb.com>

Test Plan: Imported from OSS

Reviewed By: atalman

Differential Revision: D33641276

Pulled By: seemethere

fbshipit-source-id: 0ed65cbcebf06dfe998f81d67df817250dd1a716
2022-01-18 13:18:13 -08:00
Wonjoo Lee
37eaf7640f Revert "Revert D33480077: .github: Re-enable xla test config" (#71202)
Summary:
This reverts commit 14922a136f.

Re-enable xla test config since PTXLA head is back to green -- https://app.circleci.com/pipelines/github/pytorch/xla.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/71202

Reviewed By: wenleix

Differential Revision: D33569109

Pulled By: seemethere

fbshipit-source-id: ee0985768d1dfaa6c28865ae5b3dbce2a4a340f7
2022-01-13 11:19:18 -08:00
Jane Xu
188b744390 Make docker build cron once a week and not every hour on Wed (#71255)
Summary:
The many times a day was probably not intentional

Pull Request resolved: https://github.com/pytorch/pytorch/pull/71255

Reviewed By: suo, atalman

Differential Revision: D33559155

Pulled By: janeyx99

fbshipit-source-id: c8703cea6f3188c9bcb0867b895261808d3164ee
2022-01-13 08:26:57 -08:00
Jane Xu
fd0d4bef03 Edit cron to make the docker jobs run hopefully (#71232)
Summary:
Our docker builds have not been running with our previous cron, changes this so it should work hopefully.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/71232

Reviewed By: ejguan

Differential Revision: D33552231

Pulled By: janeyx99

fbshipit-source-id: 1a3e1607b03d37614eedf04093d73f1b96698840
2022-01-12 11:37:03 -08:00
Michael Suo
14922a136f Revert D33480077: .github: Re-enable xla test config
Test Plan: revert-hammer

Differential Revision:
D33480077 (18e1e1d4d3)

Original commit changeset: a2e720c55d0e

Original Phabricator Diff: D33480077 (18e1e1d4d3)

fbshipit-source-id: e4e114a9a6d7940491ac0741e94f455a490f077a
2022-01-11 12:12:15 -08:00
Eli Uriegas
18e1e1d4d3 .github: Re-enable xla test config (#71008)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/71008

This reverts commit 6f83841582.

Test Plan: Imported from OSS

Reviewed By: janeyx99

Differential Revision: D33480077

Pulled By: seemethere

fbshipit-source-id: a2e720c55d0e1995e2b6cf2da7c801f377d52b3f
2022-01-11 10:49:20 -08:00
Eli Uriegas
87484d67e3 .github: Enable linux binary builds (#68388)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/68388

Updates the gpu architectures as well as adding a trigger for
on_pull_request for the binary build workflows so that we can iterate on
this later

TODO:
* Create follow up PR to enable nightly linux GHA builds / disable CircleCI nighlty linux builds

Signed-off-by: Eli Uriegas <eliuriegas@fb.com>

Test Plan: Imported from OSS

Reviewed By: janeyx99

Differential Revision: D33462294

Pulled By: seemethere

fbshipit-source-id: 5fa30517550d36f504b491cf6c1e5c9da56d8191
2022-01-10 11:30:45 -08:00
Peter Bell
4cbe140ec5 Add CI config to test USE_PER_OPERATOR_HEADERS=0 (#69907)
Summary:
The CMake build defaults to `USE_PER_OPERATOR_HEADERS = 1` which
generates extra headers in the `ATen/ops` folder that don't exist
otherwise. In particular, fb-internal builds using buck don't support
these headers and so all includes must be guarded with
`#ifdef AT_PER_OPERATOR_HEADERS`.

This adds a CI run which builds with `USE_PER_OPERATOR_HEADERS = 0` so
open source contributions don't have to wait for their PR to be
imported to find out it doesn't work in fb-internal. This flag
shouldn't effect runtime behavior though, so I don't run any tests.

cc seemethere malfet pytorch/pytorch-dev-infra

Pull Request resolved: https://github.com/pytorch/pytorch/pull/69907

Reviewed By: malfet, atalman

Differential Revision: D33411864

Pulled By: seemethere

fbshipit-source-id: 18b34d7a83dc81cf8a6c396ba8369e1789f936e9
2022-01-05 09:18:06 -08:00
Jithun Nair
8ba27c576c Upgrade CI to ROCm4.5.2 (#69886)
Summary:
cc jeffdaily sunway513 jithunnair-amd ROCmSupport KyleCZH

Pull Request resolved: https://github.com/pytorch/pytorch/pull/69886

Reviewed By: albanD, seemethere

Differential Revision: D33429299

Pulled By: malfet

fbshipit-source-id: c3d6d9e45e30d0149b04e59ea255d88bc0e933f2
2022-01-05 08:48:46 -08:00
Andrey Talman
066c9ff08f Deprecating python 3.6 (#70325)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/70457

Pull Request resolved: https://github.com/pytorch/pytorch/pull/70325

Reviewed By: seemethere

Differential Revision: D33339496

Pulled By: atalman

fbshipit-source-id: 7509cab4f7469dae234bcf3f79e0aabb54577b8a
2021-12-28 18:44:59 -08:00
Eli Uriegas
6f83841582 .github: Temporarily disable xla test config (#70453)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/70453

Removes the current xla config, downstream `pytorch/xla` is broken for
clang compilation so temporarily removing this config until the xla team
can fix this upstream CI.

Context: https://github.com/pytorch/xla/pull/3255/files#r775980035

Signed-off-by: Eli Uriegas <eliuriegas@fb.com>

Test Plan: Imported from OSS

Reviewed By: zengk95

Differential Revision: D33338463

Pulled By: seemethere

fbshipit-source-id: 1ef332c685d5e2cc7e2eb038e93bd656847fd099
2021-12-28 08:49:01 -08:00
zengk95
f36b44bb9e Remove ciflow_should_run job (#70204)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/66725

This removes the ci_flow_should_run job and puts it in the build stage for the different job templates.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/70204

Reviewed By: malfet

Differential Revision: D33282338

Pulled By: zengk95

fbshipit-source-id: 327ff2bca9720d2a69083594ada5c7788b65adbd
2021-12-22 11:52:42 -08:00
wushirong
31c7e5d629 Install TensorRT lib on oss docker and enable fx2trt unit test (#70203)
Summary:
CI

Lib installed and unit test run on https://github.com/pytorch/pytorch/actions/runs/1604076060

Pull Request resolved: https://github.com/pytorch/pytorch/pull/70203

Reviewed By: malfet

Differential Revision: D33264641

Pulled By: wushirong

fbshipit-source-id: ba30010bbd06e70d31415d8c52086d1779371bcf
2021-12-22 08:50:48 -08:00
Slava Kovalevskyi
e428a90553 Android build migrated to GHA. (#68843)
Summary:
All for builds of the Android (arm32/64 and x86_32/64) are not migrated to the GHA, away from circleCI. Since this part of the workflow creates final binary with all architectures in it, it was not possible to do migration step by step.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/68843

Reviewed By: malfet

Differential Revision: D33257480

Pulled By: b0noI

fbshipit-source-id: dd280c8268bdd31763754c36f38e4ea12b23cd2e
2021-12-21 10:02:51 -08:00
Michael Suo
19f898402d Revert D33241684: [pytorch][PR] Install TensorRT lib on oss docker and enable fx2trt unit test
Test Plan: revert-hammer

Differential Revision:
D33241684 (dab3d3132b)

Original commit changeset: cd498908b00f

Original Phabricator Diff: D33241684 (dab3d3132b)

fbshipit-source-id: d5b2e663b5b0c9e570bd799b9f6111cd2a0de4f7
2021-12-20 23:14:35 -08:00
wushirong
dab3d3132b Install TensorRT lib on oss docker and enable fx2trt unit test (#70203)
Summary:
CI

Lib installed and unit test run on https://github.com/pytorch/pytorch/actions/runs/1604076060

Pull Request resolved: https://github.com/pytorch/pytorch/pull/70203

Reviewed By: janeyx99

Differential Revision: D33241684

Pulled By: wushirong

fbshipit-source-id: cd498908b00f3417bdeb5ede78f5576b3b71087c
2021-12-20 18:51:48 -08:00
Thuyen Ngo
e35bf56461 [Bazel] Add CUDA build to CI (#66241)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/35316
On master, bazel cuda build is disabled due to lack of a proper `cu_library` rule. This PR:
- Add `rules_cuda` to the WORKSPACE and forward `cu_library` to `rules_cuda`.
- Use a simple local cuda and cudnn repositories (adopted from TRTorch) for cuda 11.3.
- Fix current broken cuda build.
- Enable cuda build in CI, not just for `:torch` target but all the test binaries to catch undefined symbols.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/66241

Reviewed By: ejguan

Differential Revision: D31544091

Pulled By: malfet

fbshipit-source-id: fd3c34d0e8f80fee06f015694a4c13a8e9e12206
2021-12-17 13:44:29 -08:00
Nikita Shulga
ad79d0dd4b Add ciflow/trunk label (#69575)
Summary:
Which includes all workflows but periodic ones

Pull Request resolved: https://github.com/pytorch/pytorch/pull/69575

Reviewed By: seemethere

Differential Revision: D32932850

Pulled By: malfet

fbshipit-source-id: 80b58fb3a0d5f8dbc527124be5bf25bd716448b8
2021-12-17 09:57:46 -08:00
Xida Chen
531da0c43b change asan test shard to 3 (#69843)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/68261

This PR changes the number of test shard from 2-->3 for all Asan test, aiming to improve the run time for Asan tests.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/69843

Reviewed By: janeyx99

Differential Revision: D33160771

Pulled By: xidachen

fbshipit-source-id: dba1d318cc49b923e18704839471d8753cc00eca
2021-12-16 07:22:03 -08:00
Andrey Talman
77a4b89411 Adding windows cuda 11.5 workflows (#69377)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/69081

Pull Request resolved: https://github.com/pytorch/pytorch/pull/69377

Reviewed By: ngimel

Differential Revision: D33076022

Pulled By: atalman

fbshipit-source-id: aeb2791fc15d7b491976f57a74c1989c6ca61b81
2021-12-13 20:49:02 -08:00
Andrey Talman
c309637923 Making cuda 11.5 workflows periodic (#69323)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/68259

Pull Request resolved: https://github.com/pytorch/pytorch/pull/69323

Reviewed By: gchanan, malfet

Differential Revision: D32812346

Pulled By: atalman

fbshipit-source-id: 081f40802997cfb986742f1621eee4b4565660f0
2021-12-07 13:14:07 -08:00
Andrey Talman
e0fb228e03 Revert of adding windows CUDA 11.5 workflow (#69365)
Summary:
This is partial revert of bb522c9d7a to revert addition of workflows for CUDA 11.5 windows that fails

Pull Request resolved: https://github.com/pytorch/pytorch/pull/69365

Reviewed By: suo

Differential Revision: D32831418

Pulled By: atalman

fbshipit-source-id: 184346d22623f88594312a4ce2e4d29cc67e8338
2021-12-03 08:00:16 -08:00
Eli Uriegas
f786b03f98 ci: Migrate docs push to GHA (#69172)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/69172

Migrates the docs push jobs to Github Actions by implementing a simple
WITH_PUSH switch to do the actual push.

Adds 2 new workflows for GHA:
* linux-docs (on trunk)
* linux-docs-push (on schedule)

linux-docs-push is the only workflow that actually gets access to
credentials so it should be relatively safe.

Signed-off-by: Eli Uriegas <eliuriegas@fb.com>

Test Plan: Imported from OSS

Reviewed By: malfet

Differential Revision: D32767239

Pulled By: seemethere

fbshipit-source-id: 5b100f986cf4023c323f4f96f0fe7942fec49ad2
2021-12-02 15:06:57 -08:00
Andrey Talman
bb522c9d7a Enabling CUDA 11.5 for binary builds, Adding windows workflows for CUDA 11.5 (#69262)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/68259

Pull Request resolved: https://github.com/pytorch/pytorch/pull/69262

Reviewed By: malfet

Differential Revision: D32804850

Pulled By: atalman

fbshipit-source-id: abac45ad1d49ec7e0e7df6cb9a22a46fbcd905a2
2021-12-02 13:04:43 -08:00
Andrey Talman
f1a3512b78 Adding Linux cuda 11.5 workflows (#68745)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/68960

Pull Request resolved: https://github.com/pytorch/pytorch/pull/68745

Reviewed By: janeyx99

Differential Revision: D32707491

Pulled By: atalman

fbshipit-source-id: 100facfdcc0fc2f68e203a696856852faa25ee08
2021-11-29 16:21:00 -08:00
Nikita Shulga
ee59a09772 Implement sharding for MacOS jobs (#68784)
Summary:
Do not run distributed tests as part of separate shard, but keep it inside one of the two shards (to limit concurrency problems)
Fixes https://github.com/pytorch/pytorch/issues/68260

Pull Request resolved: https://github.com/pytorch/pytorch/pull/68784

Reviewed By: seemethere, janeyx99

Differential Revision: D32653440

Pulled By: malfet

fbshipit-source-id: ebe5bbc30bdf67e930f2c766c920932700f3a4e4
2021-11-29 09:31:42 -08:00
Eli Uriegas
17ba936da0 .github: Migrate XLA tests to GHA (#64320)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/64320

Signed-off-by: Eli Uriegas <eliuriegas@fb.com>

Test Plan: Imported from OSS

Reviewed By: malfet

Differential Revision: D30684490

Pulled By: seemethere

fbshipit-source-id: 5d2657f9aa4c7082591239a5bb095cc85d2cde66
2021-11-29 08:30:57 -08:00
Nikita Shulga
c5f63f859e Add slow path to getCustomClassTypeImpl (#68717)
Summary:
This fixes custom class registration issue when `typeid` is not guaranteed to be unique across multiple libraries, which is the case for libc++ runtime on MacOS 11 in particular for M1
From [libcxx/include/typeinfo](78d6a7767e/include/typeinfo (L139)):
```
// -------------------------------------------------------------------------- //
//                          NonUniqueARMRTTIBit
// -------------------------------------------------------------------------- //
// This implementation of type_info does not assume always a unique copy of
// the RTTI for a given type inside a program. It packs the pointer to the
// type name into a uintptr_t and reserves the high bit of that pointer (which
// is assumed to be free for use under the ABI in use) to represent whether
// that specific copy of the RTTI can be assumed unique inside the program.
// To implement equality-comparison of type_infos, we check whether BOTH
// type_infos are guaranteed unique, and if so, we simply compare the addresses
// of their type names instead of doing a deep string comparison, which is
// faster. If at least one of the type_infos can't guarantee uniqueness, we
// have no choice but to fall back to a deep string comparison.
```

But `std::type_index` hash is computed always assuming that implementation is unique
By adding a slow path this problem can be fixed in those scenarios.

Fixes https://github.com/pytorch/pytorch/issues/68039

Pull Request resolved: https://github.com/pytorch/pytorch/pull/68717

Reviewed By: seemethere

Differential Revision: D32605187

Pulled By: malfet

fbshipit-source-id: 8d50e56885b8c97dad3bc34a69c47ef879456dd1
2021-11-24 15:00:47 -08:00
Eli Uriegas
7b958fbec4 ci: Build periodic jobs with DEBUG=1 (#67192)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/67192

Signed-off-by: Eli Uriegas <eliuriegas@fb.com>

Test Plan: Imported from OSS

Reviewed By: albanD, janeyx99

Differential Revision: D31902447

Pulled By: seemethere

fbshipit-source-id: 1d1cca8b5ac84b1c23ab73e2d973bfb7bffa8982
2021-11-15 14:51:06 -08:00
Jiakai Liu
3dc0754c53 [pytorch][mobile] deprecate the LLVM-based static analyzer (#68180)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/68180

Since we've open sourced the tracing-based selective build, we can deprecate the
op-dependency-graph-based selective build and the static analyzer tool that
produces the dependency graph.
ghstack-source-id: 143108377

Test Plan: CIs

Reviewed By: seemethere

Differential Revision: D32358467

fbshipit-source-id: c61523706b85a49361416da2230ec1b035b8b99c
2021-11-11 16:37:08 -08:00