mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Add test owner to distributed files starting with test_ (#66797)
Summary: Action based on https://github.com/pytorch/pytorch/issues/66232 cc pietern mrshenli pritamdamania87 zhaojuanmao satgera rohan-varma gqchen aazzolini osalpekar jiayisuse SciPioneer H-Huang Pull Request resolved: https://github.com/pytorch/pytorch/pull/66797 Reviewed By: gchanan Differential Revision: D31761389 Pulled By: janeyx99 fbshipit-source-id: c27c9ab4acec1eb71d5edd4538cd113b770dfc6c
This commit is contained in:
committed by
Facebook GitHub Bot
parent
94afbd158c
commit
34051d74da
4
.github/workflows/lint.yml
vendored
4
.github/workflows/lint.yml
vendored
@ -102,6 +102,10 @@ jobs:
|
|||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
(! git --no-pager grep -I -no $'cudaStreamSynchronize' -- ./aten ./c10 ':(exclude)aten/src/ATen/test' ':(exclude)c10/cuda/CUDAFunctions.h' || (echo "The above files call raw cuda APIs directly; please use at::cuda wrappers instead"; false))
|
(! git --no-pager grep -I -no $'cudaStreamSynchronize' -- ./aten ./c10 ':(exclude)aten/src/ATen/test' ':(exclude)c10/cuda/CUDAFunctions.h' || (echo "The above files call raw cuda APIs directly; please use at::cuda wrappers instead"; false))
|
||||||
|
- name: Ensure all test files have header containing ownership information
|
||||||
|
if: always()
|
||||||
|
run: |
|
||||||
|
(! git grep -L "# Owner(s): \[" test/distributed/**/test_*.py) || (printf "The above test files are missing a comment header with ownership information; please add the following line\n\n# Owner(s): [\"<owner: label>\"]\n\nto the top of each test file. The owner should be an existing pytorch/pytorch label."; false)
|
||||||
|
|
||||||
clang-format:
|
clang-format:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# Owner(s): ["oncall: distributed"]
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import torch
|
import torch
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# Owner(s): ["oncall: distributed"]
|
||||||
|
|
||||||
import math
|
import math
|
||||||
import io
|
import io
|
||||||
import itertools
|
import itertools
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# Owner(s): ["oncall: distributed"]
|
||||||
|
|
||||||
import torch
|
import torch
|
||||||
from torch.testing._internal.common_utils import TestCase
|
from torch.testing._internal.common_utils import TestCase
|
||||||
from torch.distributed._sharding_spec import (
|
from torch.distributed._sharding_spec import (
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# Owner(s): ["oncall: distributed"]
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# Owner(s): ["oncall: distributed"]
|
||||||
|
|
||||||
import torch
|
import torch
|
||||||
import os
|
import os
|
||||||
import torch.cuda
|
import torch.cuda
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# Owner(s): ["oncall: distributed"]
|
||||||
|
|
||||||
import contextlib
|
import contextlib
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
# Owner(s): ["oncall: distributed"]
|
||||||
|
|
||||||
# Copyright (c) Facebook, Inc. and its affiliates.
|
# Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# Owner(s): ["oncall: distributed"]
|
||||||
|
|
||||||
import functools
|
import functools
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
# Owner(s): ["oncall: distributed"]
|
||||||
|
|
||||||
import pathlib
|
import pathlib
|
||||||
import sys
|
import sys
|
||||||
import unittest
|
import unittest
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# Owner(s): ["oncall: distributed"]
|
||||||
|
|
||||||
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
|
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
|
||||||
#
|
#
|
||||||
# This source code is licensed under the BSD license found in the
|
# This source code is licensed under the BSD license found in the
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# Owner(s): ["oncall: distributed"]
|
||||||
|
|
||||||
# Copyright 2019 Kakao Brain
|
# Copyright 2019 Kakao Brain
|
||||||
#
|
#
|
||||||
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
|
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# Owner(s): ["oncall: distributed"]
|
||||||
|
|
||||||
# Copyright 2019 Kakao Brain
|
# Copyright 2019 Kakao Brain
|
||||||
#
|
#
|
||||||
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
|
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# Owner(s): ["oncall: distributed"]
|
||||||
|
|
||||||
# Copyright 2019 Kakao Brain
|
# Copyright 2019 Kakao Brain
|
||||||
#
|
#
|
||||||
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
|
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# Owner(s): ["oncall: distributed"]
|
||||||
|
|
||||||
# Copyright 2019 Kakao Brain
|
# Copyright 2019 Kakao Brain
|
||||||
#
|
#
|
||||||
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
|
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# Owner(s): ["oncall: distributed"]
|
||||||
|
|
||||||
# Copyright 2019 Kakao Brain
|
# Copyright 2019 Kakao Brain
|
||||||
#
|
#
|
||||||
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
|
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# Owner(s): ["oncall: distributed"]
|
||||||
|
|
||||||
# Copyright 2019 Kakao Brain
|
# Copyright 2019 Kakao Brain
|
||||||
#
|
#
|
||||||
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
|
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# Owner(s): ["oncall: distributed"]
|
||||||
|
|
||||||
# Copyright 2019 Kakao Brain
|
# Copyright 2019 Kakao Brain
|
||||||
#
|
#
|
||||||
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
|
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# Owner(s): ["oncall: distributed"]
|
||||||
|
|
||||||
# Copyright 2019 Kakao Brain
|
# Copyright 2019 Kakao Brain
|
||||||
#
|
#
|
||||||
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
|
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# Owner(s): ["oncall: distributed"]
|
||||||
|
|
||||||
# Copyright 2019 Kakao Brain
|
# Copyright 2019 Kakao Brain
|
||||||
#
|
#
|
||||||
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
|
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# Owner(s): ["oncall: distributed"]
|
||||||
|
|
||||||
# Copyright 2019 Kakao Brain
|
# Copyright 2019 Kakao Brain
|
||||||
#
|
#
|
||||||
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
|
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# Owner(s): ["oncall: distributed"]
|
||||||
|
|
||||||
# Copyright 2019 Kakao Brain
|
# Copyright 2019 Kakao Brain
|
||||||
#
|
#
|
||||||
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
|
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# Owner(s): ["oncall: distributed"]
|
||||||
|
|
||||||
# Copyright 2019 Kakao Brain
|
# Copyright 2019 Kakao Brain
|
||||||
#
|
#
|
||||||
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
|
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# Owner(s): ["oncall: distributed"]
|
||||||
|
|
||||||
# Copyright 2019 Kakao Brain
|
# Copyright 2019 Kakao Brain
|
||||||
#
|
#
|
||||||
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
|
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# Owner(s): ["oncall: distributed"]
|
||||||
|
|
||||||
# Copyright 2019 Kakao Brain
|
# Copyright 2019 Kakao Brain
|
||||||
#
|
#
|
||||||
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
|
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
# Owner(s): ["oncall: distributed"]
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
# Owner(s): ["oncall: distributed"]
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
# Owner(s): ["oncall: distributed"]
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# Owner(s): ["oncall: distributed"]
|
||||||
|
|
||||||
import copy
|
import copy
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# Owner(s): ["oncall: distributed"]
|
||||||
|
|
||||||
import copy
|
import copy
|
||||||
import logging
|
import logging
|
||||||
import math
|
import math
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# Owner(s): ["oncall: distributed"]
|
||||||
|
|
||||||
import copy
|
import copy
|
||||||
import math
|
import math
|
||||||
import os
|
import os
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# Owner(s): ["oncall: distributed"]
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# Owner(s): ["oncall: distributed"]
|
||||||
|
|
||||||
import copy
|
import copy
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# Owner(s): ["oncall: distributed"]
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import test_c10d_spawn
|
import test_c10d_spawn
|
||||||
import torch
|
import torch
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# Owner(s): ["oncall: distributed"]
|
||||||
|
|
||||||
import contextlib
|
import contextlib
|
||||||
import io
|
import io
|
||||||
from copy import deepcopy
|
from copy import deepcopy
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# Owner(s): ["oncall: distributed"]
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# Owner(s): ["oncall: distributed"]
|
||||||
|
|
||||||
import tempfile
|
import tempfile
|
||||||
import sys
|
import sys
|
||||||
import torch
|
import torch
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# Owner(s): ["oncall: distributed"]
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
from contextlib import closing
|
from contextlib import closing
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# Owner(s): ["oncall: distributed"]
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import torch
|
import torch
|
||||||
import torch.cuda.nccl as nccl
|
import torch.cuda.nccl as nccl
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# Owner(s): ["oncall: distributed"]
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# Owner(s): ["oncall: distributed"]
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import random
|
import random
|
||||||
import sys
|
import sys
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# Owner(s): ["oncall: distributed"]
|
||||||
|
|
||||||
import torch
|
import torch
|
||||||
import torch.nn as nn
|
import torch.nn as nn
|
||||||
import torch.nn.functional as F
|
import torch.nn.functional as F
|
||||||
|
Reference in New Issue
Block a user