<h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2>

<p dir="auto">For some reason, I want to divide all training processes into several subset, and do communication in each of them. As the division may change during Traing, after some research, I want to use dist.new_group(). Howerver, I keep getting error like ConnectionRefused or just stuck.</p>
<h2 dir="auto">To Reproduce</h2>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import torch
import torch.distributed as dist
import torch.multiprocessing as mp

import os
import time
import argparse
from datetime import timedelta

def main():
  os.environ[&quot;MASTER_ADDR&quot;] = '127.0.0.1'
  os.environ[&quot;MASTER_PORT&quot;] = '25500'

  mp.spawn(main_worker, nprocs=4)


def main_worker(rank):
    print(f'Started process {rank}')
    torch.cuda.set_device(rank)
    dist.init_process_group('gloo', world_size=4, rank=rank)
    for _ in range(10):
        test_group(rank)

def test_group(rank):
    if rank == 0:
        perm = torch.randperm(4)
    else:
        perm = torch.zeros(4, dtype=torch.int64)
    dist.broadcast(perm, 0)
    print(f'rank: {rank} get broadcast {perm}')
    start = 0
    while rank not in perm[start: start + 2]:
        start += 2
    group = perm.tolist()[start: start + 2]
    pg = dist.new_group(group, timeout=timedelta(seconds=30))
    print(f'Rank: {rank} Group: {group}')
    tensor = torch.randn(4, 5).cuda()
    dist.all_reduce(tensor, group=pg)
    print(f'Rank:{rank}\tGroup:{group}\tTensor: {tensor}\n')
    dist.destroy_process_group(pg)
    print(f'Rank: {rank} process group destroyed')

if __name__ == '__main__':
  main()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">torch</span>
<span class="pl-k">import</span> <span class="pl-s1">torch</span>.<span class="pl-s1">distributed</span> <span class="pl-k">as</span> <span class="pl-s1">dist</span>
<span class="pl-k">import</span> <span class="pl-s1">torch</span>.<span class="pl-s1">multiprocessing</span> <span class="pl-k">as</span> <span class="pl-s1">mp</span>

<span class="pl-k">import</span> <span class="pl-s1">os</span>
<span class="pl-k">import</span> <span class="pl-s1">time</span>
<span class="pl-k">import</span> <span class="pl-s1">argparse</span>
<span class="pl-k">from</span> <span class="pl-s1">datetime</span> <span class="pl-k">import</span> <span class="pl-s1">timedelta</span>

<span class="pl-k">def</span> <span class="pl-en">main</span>():
  <span class="pl-s1">os</span>.<span class="pl-s1">environ</span>[<span class="pl-s">"MASTER_ADDR"</span>] <span class="pl-c1">=</span> <span class="pl-s">'127.0.0.1'</span>
  <span class="pl-s1">os</span>.<span class="pl-s1">environ</span>[<span class="pl-s">"MASTER_PORT"</span>] <span class="pl-c1">=</span> <span class="pl-s">'25500'</span>

  <span class="pl-s1">mp</span>.<span class="pl-en">spawn</span>(<span class="pl-s1">main_worker</span>, <span class="pl-s1">nprocs</span><span class="pl-c1">=</span><span class="pl-c1">4</span>)


<span class="pl-k">def</span> <span class="pl-en">main_worker</span>(<span class="pl-s1">rank</span>):
    <span class="pl-en">print</span>(<span class="pl-s">f'Started process <span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">rank</span><span class="pl-kos">}</span></span>'</span>)
    <span class="pl-s1">torch</span>.<span class="pl-s1">cuda</span>.<span class="pl-en">set_device</span>(<span class="pl-s1">rank</span>)
    <span class="pl-s1">dist</span>.<span class="pl-en">init_process_group</span>(<span class="pl-s">'gloo'</span>, <span class="pl-s1">world_size</span><span class="pl-c1">=</span><span class="pl-c1">4</span>, <span class="pl-s1">rank</span><span class="pl-c1">=</span><span class="pl-s1">rank</span>)
    <span class="pl-k">for</span> <span class="pl-s1">_</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-c1">10</span>):
        <span class="pl-en">test_group</span>(<span class="pl-s1">rank</span>)

<span class="pl-k">def</span> <span class="pl-en">test_group</span>(<span class="pl-s1">rank</span>):
    <span class="pl-k">if</span> <span class="pl-s1">rank</span> <span class="pl-c1">==</span> <span class="pl-c1">0</span>:
        <span class="pl-s1">perm</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">randperm</span>(<span class="pl-c1">4</span>)
    <span class="pl-k">else</span>:
        <span class="pl-s1">perm</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">zeros</span>(<span class="pl-c1">4</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">torch</span>.<span class="pl-s1">int64</span>)
    <span class="pl-s1">dist</span>.<span class="pl-en">broadcast</span>(<span class="pl-s1">perm</span>, <span class="pl-c1">0</span>)
    <span class="pl-en">print</span>(<span class="pl-s">f'rank: <span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">rank</span><span class="pl-kos">}</span></span> get broadcast <span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">perm</span><span class="pl-kos">}</span></span>'</span>)
    <span class="pl-s1">start</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span>
    <span class="pl-k">while</span> <span class="pl-s1">rank</span> <span class="pl-c1">not</span> <span class="pl-c1">in</span> <span class="pl-s1">perm</span>[<span class="pl-s1">start</span>: <span class="pl-s1">start</span> <span class="pl-c1">+</span> <span class="pl-c1">2</span>]:
        <span class="pl-s1">start</span> <span class="pl-c1">+=</span> <span class="pl-c1">2</span>
    <span class="pl-s1">group</span> <span class="pl-c1">=</span> <span class="pl-s1">perm</span>.<span class="pl-en">tolist</span>()[<span class="pl-s1">start</span>: <span class="pl-s1">start</span> <span class="pl-c1">+</span> <span class="pl-c1">2</span>]
    <span class="pl-s1">pg</span> <span class="pl-c1">=</span> <span class="pl-s1">dist</span>.<span class="pl-en">new_group</span>(<span class="pl-s1">group</span>, <span class="pl-s1">timeout</span><span class="pl-c1">=</span><span class="pl-en">timedelta</span>(<span class="pl-s1">seconds</span><span class="pl-c1">=</span><span class="pl-c1">30</span>))
    <span class="pl-en">print</span>(<span class="pl-s">f'Rank: <span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">rank</span><span class="pl-kos">}</span></span> Group: <span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">group</span><span class="pl-kos">}</span></span>'</span>)
    <span class="pl-s1">tensor</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">randn</span>(<span class="pl-c1">4</span>, <span class="pl-c1">5</span>).<span class="pl-en">cuda</span>()
    <span class="pl-s1">dist</span>.<span class="pl-en">all_reduce</span>(<span class="pl-s1">tensor</span>, <span class="pl-s1">group</span><span class="pl-c1">=</span><span class="pl-s1">pg</span>)
    <span class="pl-en">print</span>(<span class="pl-s">f'Rank:<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">rank</span><span class="pl-kos">}</span></span><span class="pl-cce">\t</span>Group:<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">group</span><span class="pl-kos">}</span></span><span class="pl-cce">\t</span>Tensor: <span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">tensor</span><span class="pl-kos">}</span></span><span class="pl-cce">\n</span>'</span>)
    <span class="pl-s1">dist</span>.<span class="pl-en">destroy_process_group</span>(<span class="pl-s1">pg</span>)
    <span class="pl-en">print</span>(<span class="pl-s">f'Rank: <span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">rank</span><span class="pl-kos">}</span></span> process group destroyed'</span>)

<span class="pl-k">if</span> <span class="pl-s1">__name__</span> <span class="pl-c1">==</span> <span class="pl-s">'__main__'</span>:
  <span class="pl-en">main</span>()</pre></div>
<p dir="auto">Steps to reproduce the behavior:</p>
<ol dir="auto">
<li>run the script above witch Gloo</li>
</ol>
<p dir="auto">At most time, I will get a  <strong>connection refused</strong> error</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Started process 2
Started process 0
Started process 1
Started process 3
rank: 2 get broadcast tensor([3, 1, 0, 2])
rank: 1 get broadcast tensor([3, 1, 0, 2])
rank: 0 get broadcast tensor([3, 1, 0, 2])
rank: 3 get broadcast tensor([3, 1, 0, 2])
Rank: 2 Group: [0, 2]
Rank: 0 Group: [0, 2]
Traceback (most recent call last):
  File &quot;group_test.py&quot;, line 44, in &lt;module&gt;
    main()
  File &quot;group_test.py&quot;, line 14, in main
    mp.spawn(main_worker, nprocs=4)
  File &quot;/data/users/yangx/miniconda3/envs/multiRing/lib/python3.7/site-packages/torch/multiprocessing/spawn.py&quot;, line 171, in spawn
    while not spawn_context.join():
  File &quot;/data/users/yangx/miniconda3/envs/multiRing/lib/python3.7/site-packages/torch/multiprocessing/spawn.py&quot;, line 118, in join
    raise Exception(msg)
Exception:

-- Process 3 terminated with the following error:
Traceback (most recent call last):
  File &quot;/data/users/&lt;user&gt;/lib/python3.7/site-packages/torch/multiprocessing/spawn.py&quot;, line 19, in _wrap
    fn(i, *args)
  File &quot;/data/users/&lt;user&gt;/group_test.py&quot;, line 21, in main_worker
    test_group(rank)
  File &quot;/data/users/&lt;user&gt;/group_test.py&quot;, line 28, in test_group
    pg = dist.new_group(group, timeout=timedelta(seconds=30))
  File &quot;/data/users/&lt;user&gt;/lib/python3.7/site-packages/torch/distributed/distributed_c10d.py&quot;, line 1434, in new_group
    timeout=timeout)
  File &quot;/data/users/&lt;user&gt;/lib/python3.7/site-packages/torch/distributed/distributed_c10d.py&quot;, line 484, in _new_process_group_helper
    timeout=timeout)
RuntimeError: [/opt/conda/conda-bld/pytorch_1565272271120/work/third_party/gloo/gloo/transport/tcp/pair.cc:761] connect [127.0.1.1]:23170: Connection refused"><pre class="notranslate"><code class="notranslate">Started process 2
Started process 0
Started process 1
Started process 3
rank: 2 get broadcast tensor([3, 1, 0, 2])
rank: 1 get broadcast tensor([3, 1, 0, 2])
rank: 0 get broadcast tensor([3, 1, 0, 2])
rank: 3 get broadcast tensor([3, 1, 0, 2])
Rank: 2 Group: [0, 2]
Rank: 0 Group: [0, 2]
Traceback (most recent call last):
  File "group_test.py", line 44, in &lt;module&gt;
    main()
  File "group_test.py", line 14, in main
    mp.spawn(main_worker, nprocs=4)
  File "/data/users/yangx/miniconda3/envs/multiRing/lib/python3.7/site-packages/torch/multiprocessing/spawn.py", line 171, in spawn
    while not spawn_context.join():
  File "/data/users/yangx/miniconda3/envs/multiRing/lib/python3.7/site-packages/torch/multiprocessing/spawn.py", line 118, in join
    raise Exception(msg)
Exception:

-- Process 3 terminated with the following error:
Traceback (most recent call last):
  File "/data/users/&lt;user&gt;/lib/python3.7/site-packages/torch/multiprocessing/spawn.py", line 19, in _wrap
    fn(i, *args)
  File "/data/users/&lt;user&gt;/group_test.py", line 21, in main_worker
    test_group(rank)
  File "/data/users/&lt;user&gt;/group_test.py", line 28, in test_group
    pg = dist.new_group(group, timeout=timedelta(seconds=30))
  File "/data/users/&lt;user&gt;/lib/python3.7/site-packages/torch/distributed/distributed_c10d.py", line 1434, in new_group
    timeout=timeout)
  File "/data/users/&lt;user&gt;/lib/python3.7/site-packages/torch/distributed/distributed_c10d.py", line 484, in _new_process_group_helper
    timeout=timeout)
RuntimeError: [/opt/conda/conda-bld/pytorch_1565272271120/work/third_party/gloo/gloo/transport/tcp/pair.cc:761] connect [127.0.1.1]:23170: Connection refused
</code></pre></div>
<p dir="auto">But sometimes, I can get some result at first(but NOT correct!), then the code <strong>just stuck</strong>, and I have to Ctrl-C</p>
<p dir="auto">The really strange things is that Rank 1 and 3 should in different groups, but they act like in the same(the all-reduce result is the same).</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Started process 0
Started process 1
Started process 3
Started process 2
rank: 2 get broadcast tensor([0, 3, 2, 1])
rank: 1 get broadcast tensor([0, 3, 2, 1])
rank: 3 get broadcast tensor([0, 3, 2, 1])
rank: 0 get broadcast tensor([0, 3, 2, 1])
Rank: 3 Group: [0, 3]
Rank: 1 Group: [2, 1]
Rank:1	Group:[2, 1]	Tensor: tensor([[-0.3007, -1.8406,  0.1597, -0.9097,  1.7759],
        [-0.7950,  1.5906,  0.4027,  0.8949,  0.2737],
        [ 1.4671,  1.3343,  0.2170,  1.2460,  0.6926],
        [-0.1553, -1.6191,  0.9762,  1.9962, -1.2016]], device='cuda:1')

Rank: 1 process group destroyed
Rank:3	Group:[0, 3]	Tensor: tensor([[-0.3007, -1.8406,  0.1597, -0.9097,  1.7759],
        [-0.7950,  1.5906,  0.4027,  0.8949,  0.2737],
        [ 1.4671,  1.3343,  0.2170,  1.2460,  0.6926],
        [-0.1553, -1.6191,  0.9762,  1.9962, -1.2016]], device='cuda:3')

Rank: 3 process group destroyed"><pre class="notranslate"><code class="notranslate">Started process 0
Started process 1
Started process 3
Started process 2
rank: 2 get broadcast tensor([0, 3, 2, 1])
rank: 1 get broadcast tensor([0, 3, 2, 1])
rank: 3 get broadcast tensor([0, 3, 2, 1])
rank: 0 get broadcast tensor([0, 3, 2, 1])
Rank: 3 Group: [0, 3]
Rank: 1 Group: [2, 1]
Rank:1	Group:[2, 1]	Tensor: tensor([[-0.3007, -1.8406,  0.1597, -0.9097,  1.7759],
        [-0.7950,  1.5906,  0.4027,  0.8949,  0.2737],
        [ 1.4671,  1.3343,  0.2170,  1.2460,  0.6926],
        [-0.1553, -1.6191,  0.9762,  1.9962, -1.2016]], device='cuda:1')

Rank: 1 process group destroyed
Rank:3	Group:[0, 3]	Tensor: tensor([[-0.3007, -1.8406,  0.1597, -0.9097,  1.7759],
        [-0.7950,  1.5906,  0.4027,  0.8949,  0.2737],
        [ 1.4671,  1.3343,  0.2170,  1.2460,  0.6926],
        [-0.1553, -1.6191,  0.9762,  1.9962, -1.2016]], device='cuda:3')

Rank: 3 process group destroyed
</code></pre></div>

<h2 dir="auto">Expected behavior</h2>

<p dir="auto">The group can be established and destroyed during running, and the tensor can be correct sent in each subset.</p>
<h2 dir="auto">Environment</h2>
<p dir="auto">Please copy and paste the output from our<br>
<a href="https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py" rel="nofollow">environment collection script</a><br>
(or fill out the checklist below manually).</p>
<p dir="auto">Collecting environment information...<br>
PyTorch version: 1.2.0<br>
Is debug build: No<br>
CUDA used to build PyTorch: 10.0.130</p>
<p dir="auto">OS: Ubuntu 16.04.6 LTS<br>
GCC version: (Ubuntu 4.9.4-2ubuntu1~14.04.1) 4.9.4<br>
CMake version: version 3.5.1</p>
<p dir="auto">Python version: 3.7<br>
Is CUDA available: Yes<br>
CUDA runtime version: 10.1.168<br>
GPU models and configuration:<br>
GPU 0: Tesla K80<br>
GPU 1: Tesla K80<br>
GPU 2: Tesla K80<br>
GPU 3: Tesla K80<br>
GPU 4: Tesla K80<br>
GPU 5: Tesla K80<br>
GPU 6: Tesla K80<br>
GPU 7: Tesla K80</p>
<p dir="auto">Nvidia driver version: 418.67<br>
cuDNN version: Probably one of the following:<br>
/usr/local/cuda-9.0/targets/x86_64-linux/lib/libcudnn.so.7.4.1<br>
/usr/local/lib/libcudnn.so.6</p>
<p dir="auto">Versions of relevant libraries:<br>
[pip3] numpy==1.16.3<br>
[pip3] torch==1.1.0<br>
[pip3] torchvision==0.3.0<br>
[conda] _tflow_select             2.3.0                       mkl    <a href="https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main" rel="nofollow">https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main</a><br>
[conda] blas                      1.0                         mkl    <a href="https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main" rel="nofollow">https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main</a><br>
[conda] mkl                       2018.0.3                      1    <a href="https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main" rel="nofollow">https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main</a><br>
[conda] mkl_fft                   1.0.6            py37h7dd41cf_0    <a href="https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main" rel="nofollow">https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main</a><br>
[conda] mkl_random                1.0.1            py37h4414c95_1    <a href="https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main" rel="nofollow">https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main</a><br>
[conda] pytorch                   1.2.0           py3.7_cuda10.0.130_cudnn7.6.2_0    <a href="https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch" rel="nofollow">https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch</a><br>
[conda] pytorch-transformers      1.0.0                    pypi_0    pypi<br>
[conda] tensorflow                1.13.1          mkl_py37h54b294f_0    <a href="https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main" rel="nofollow">https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main</a><br>
[conda] tensorflow-base           1.13.1          mkl_py37h7ce6ba3_0    <a href="https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main" rel="nofollow">https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main</a><br>
[conda] torchtext                 0.4.0              pyhb384e40_1    <a href="https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch" rel="nofollow">https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch</a><br>
[conda] torchvision               0.4.0                py37_cu100    <a href="https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch" rel="nofollow">https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch</a><br>
You can get the script and run it with:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py"><pre class="notranslate"><code class="notranslate">wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py
</code></pre></div>
<h2 dir="auto">Additional context</h2>

<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pietern/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pietern">@pietern</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mrshenli/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mrshenli">@mrshenli</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pritamdamania87/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pritamdamania87">@pritamdamania87</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zhaojuanmao/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zhaojuanmao">@zhaojuanmao</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/satgera/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/satgera">@satgera</a></p>
<h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2>
<p dir="auto">Seems that CUDA10.0 could build pytorch objects, but during linkage phase. it failed. could you help to check reason, or give me some hints for solving with it? now my mac with nvidia GPU 1080i can't use torch with GPU.</p>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto">Steps to reproduce the behavior:</p>
<ol dir="auto">
<li>Set  USE_DISTRIBUTED=OFF in CMakeLists.txt</li>
<li>MACOSX_DEPLOYMENT_TARGET=10.13 CC=clang CXX=clang++ python setup.py bdist_wheel</li>
</ol>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">torch wheel should be generated with GPU supported (0.4 torch wheel could be generated in the same way), but failed with following error</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/cudnn_test (for architecture x86_64) option &quot;-add_rpath /usr/local/cuda/lib&quot; would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/cudnn_test (for architecture x86_64) option &quot;-add_rpath /usr/local/cuda/lib&quot; would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/blob_gpu_test (for architecture x86_64) option &quot;-add_rpath /usr/local/cuda/lib&quot; would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/blob_gpu_test (for architecture x86_64) option &quot;-add_rpath /usr/local/cuda/lib&quot; would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/context_gpu_test (for architecture x86_64) option &quot;-add_rpath /usr/local/cuda/lib&quot; would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/context_gpu_test (for architecture x86_64) option &quot;-add_rpath /usr/local/cuda/lib&quot; would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/event_gpu_test (for architecture x86_64) option &quot;-add_rpath /usr/local/cuda/lib&quot; would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/event_gpu_test (for architecture x86_64) option &quot;-add_rpath /usr/local/cuda/lib&quot; would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/net_gpu_test (for architecture x86_64) option &quot;-add_rpath /usr/local/cuda/lib&quot; would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/net_gpu_test (for architecture x86_64) option &quot;-add_rpath /usr/local/cuda/lib&quot; would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/operator_gpu_test (for architecture x86_64) option &quot;-add_rpath /usr/local/cuda/lib&quot; would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/operator_gpu_test (for architecture x86_64) option &quot;-add_rpath /usr/local/cuda/lib&quot; would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/math_gpu_test (for architecture x86_64) option &quot;-add_rpath /usr/local/cuda/lib&quot; would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/math_gpu_test (for architecture x86_64) option &quot;-add_rpath /usr/local/cuda/lib&quot; would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/conv_op_cache_cudnn_test (for architecture x86_64) option &quot;-add_rpath /usr/local/cuda/lib&quot; would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/conv_op_cache_cudnn_test (for architecture x86_64) option &quot;-add_rpath /usr/local/cuda/lib&quot; would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/batch_matmul_op_gpu_test (for architecture x86_64) option &quot;-add_rpath /usr/local/cuda/lib&quot; would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/batch_matmul_op_gpu_test (for architecture x86_64) option &quot;-add_rpath /usr/local/cuda/lib&quot; would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/elementwise_op_gpu_test (for architecture x86_64) option &quot;-add_rpath /usr/local/cuda/lib&quot; would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/elementwise_op_gpu_test (for architecture x86_64) option &quot;-add_rpath /usr/local/cuda/lib&quot; would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/operator_fallback_gpu_test (for architecture x86_64) option &quot;-add_rpath /usr/local/cuda/lib&quot; would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/operator_fallback_gpu_test (for architecture x86_64) option &quot;-add_rpath /usr/local/cuda/lib&quot; would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/reshape_op_gpu_test (for architecture x86_64) option &quot;-add_rpath /usr/local/cuda/lib&quot; would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/reshape_op_gpu_test (for architecture x86_64) option &quot;-add_rpath /usr/local/cuda/lib&quot; would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/roi_align_op_gpu_test (for architecture x86_64) option &quot;-add_rpath /usr/local/cuda/lib&quot; would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/roi_align_op_gpu_test (for architecture x86_64) option &quot;-add_rpath /usr/local/cuda/lib&quot; would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/utility_ops_gpu_test (for architecture x86_64) option &quot;-add_rpath /usr/local/cuda/lib&quot; would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/utility_ops_gpu_test (for architecture x86_64) option &quot;-add_rpath /usr/local/cuda/lib&quot; would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/lib/python3.6/site-packages/caffe2/python/caffe2_pybind11_state_gpu.cpython-36m-darwin.so (for architecture x86_64) option &quot;-add_rpath /usr/local/cuda/lib&quot; would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/lib/libtorch.1.dylib (for architecture x86_64) option &quot;-add_rpath /usr/local/cuda/lib&quot; would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/lib/libtorch.1.dylib (for architecture x86_64) option &quot;-add_rpath /usr/local/cuda/lib&quot; would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/lib/libcaffe2_detectron_ops_gpu.dylib (for architecture x86_64) option &quot;-add_rpath /usr/local/cuda/lib&quot; would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/lib/libcaffe2_detectron_ops_gpu.dylib (for architecture x86_64) option &quot;-add_rpath /usr/local/cuda/lib&quot; would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
+ [[ ON == \O\N ]]
++ pwd
++ cd ..
++ pwd
+ echo 'Copying Caffe2 proto files from /Volumes/llv24macOS/git_projects/ml/pytorch/build/caffe2/proto to  /Volumes/llv24macOS/git_projects/ml/pytorch/caffe2/proto'
Copying Caffe2 proto files from /Volumes/llv24macOS/git_projects/ml/pytorch/build/caffe2/proto to  /Volumes/llv24macOS/git_projects/ml/pytorch/caffe2/proto
++ find caffe2/proto
+ echo 'All the files in caffe2/proto are caffe2/proto
caffe2/proto/CMakeFiles
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/flags.make
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/progress.make
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/hsm.pb.cc.o
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/cmake_clean.cmake
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/torch.pb.cc.o
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/build.make
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/DependInfo.cmake
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/depend.make
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/CXX.includecache
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/depend.internal
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/caffe2.pb.cc.o
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/prof_dag.pb.cc.o
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/metanet.pb.cc.o
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/predictor_consts.pb.cc.o
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/caffe2_legacy.pb.cc.o
caffe2/proto/CMakeFiles/CMakeDirectoryInformation.cmake
caffe2/proto/CMakeFiles/progress.marks
caffe2/proto/__init__.py
caffe2/proto/prof_dag.pb.cc
caffe2/proto/Makefile
caffe2/proto/hsm.pb.cc
caffe2/proto/cmake_install.cmake
caffe2/proto/CTestTestfile.cmake
caffe2/proto/prof_dag.pb.h
caffe2/proto/hsm.pb.h
caffe2/proto/caffe2_legacy.pb.cc
caffe2/proto/predictor_consts.pb.cc
caffe2/proto/caffe2_legacy.pb.h
caffe2/proto/predictor_consts.pb.h
caffe2/proto/torch.pb.cc
caffe2/proto/torch.pb.h
caffe2/proto/metanet.pb.cc
caffe2/proto/metanet.pb.h
caffe2/proto/caffe2.pb.cc
caffe2/proto/caffe2.pb.h
caffe2/proto/prof_dag_pb2.py
caffe2/proto/hsm_pb2.py
caffe2/proto/metanet_pb2.py
caffe2/proto/caffe2_legacy_pb2.py
caffe2/proto/predictor_consts_pb2.py
caffe2/proto/torch_pb2.py
caffe2/proto/caffe2_pb2.py'
All the files in caffe2/proto are caffe2/proto
caffe2/proto/CMakeFiles
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/flags.make
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/progress.make
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/hsm.pb.cc.o
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/cmake_clean.cmake
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/torch.pb.cc.o
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/build.make
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/DependInfo.cmake
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/depend.make
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/CXX.includecache
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/depend.internal
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/caffe2.pb.cc.o
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/prof_dag.pb.cc.o
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/metanet.pb.cc.o
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/predictor_consts.pb.cc.o
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/caffe2_legacy.pb.cc.o
caffe2/proto/CMakeFiles/CMakeDirectoryInformation.cmake
caffe2/proto/CMakeFiles/progress.marks
caffe2/proto/__init__.py
caffe2/proto/prof_dag.pb.cc
caffe2/proto/Makefile
caffe2/proto/hsm.pb.cc
caffe2/proto/cmake_install.cmake
caffe2/proto/CTestTestfile.cmake
caffe2/proto/prof_dag.pb.h
caffe2/proto/hsm.pb.h
caffe2/proto/caffe2_legacy.pb.cc
caffe2/proto/predictor_consts.pb.cc
caffe2/proto/caffe2_legacy.pb.h
caffe2/proto/predictor_consts.pb.h
caffe2/proto/torch.pb.cc
caffe2/proto/torch.pb.h
caffe2/proto/metanet.pb.cc
caffe2/proto/metanet.pb.h
caffe2/proto/caffe2.pb.cc
caffe2/proto/caffe2.pb.h
caffe2/proto/prof_dag_pb2.py
caffe2/proto/hsm_pb2.py
caffe2/proto/metanet_pb2.py
caffe2/proto/caffe2_legacy_pb2.py
caffe2/proto/predictor_consts_pb2.py
caffe2/proto/torch_pb2.py
caffe2/proto/caffe2_pb2.py
++ pwd
+ for proto_file in '$(pwd)/caffe2/proto/*.py'
++ pwd
+ cp /Volumes/llv24macOS/git_projects/ml/pytorch/build/caffe2/proto/__init__.py /Volumes/llv24macOS/git_projects/ml/pytorch/build/../caffe2/proto/
cp: /Volumes/llv24macOS/git_projects/ml/pytorch/build/../caffe2/proto/__init__.py and /Volumes/llv24macOS/git_projects/ml/pytorch/build/caffe2/proto/__init__.py are identical (not copied).
Failed to run 'bash ../tools/build_pytorch_libs.sh --use-cuda --use-nnpack caffe2 libshm THD'"><pre class="notranslate">error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/cudnn_test (for architecture x86_64) option <span class="pl-s"><span class="pl-pds">"</span>-add_rpath /usr/local/cuda/lib<span class="pl-pds">"</span></span> would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/cudnn_test (for architecture x86_64) option <span class="pl-s"><span class="pl-pds">"</span>-add_rpath /usr/local/cuda/lib<span class="pl-pds">"</span></span> would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/blob_gpu_test (for architecture x86_64) option <span class="pl-s"><span class="pl-pds">"</span>-add_rpath /usr/local/cuda/lib<span class="pl-pds">"</span></span> would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/blob_gpu_test (for architecture x86_64) option <span class="pl-s"><span class="pl-pds">"</span>-add_rpath /usr/local/cuda/lib<span class="pl-pds">"</span></span> would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/context_gpu_test (for architecture x86_64) option <span class="pl-s"><span class="pl-pds">"</span>-add_rpath /usr/local/cuda/lib<span class="pl-pds">"</span></span> would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/context_gpu_test (for architecture x86_64) option <span class="pl-s"><span class="pl-pds">"</span>-add_rpath /usr/local/cuda/lib<span class="pl-pds">"</span></span> would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/event_gpu_test (for architecture x86_64) option <span class="pl-s"><span class="pl-pds">"</span>-add_rpath /usr/local/cuda/lib<span class="pl-pds">"</span></span> would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/event_gpu_test (for architecture x86_64) option <span class="pl-s"><span class="pl-pds">"</span>-add_rpath /usr/local/cuda/lib<span class="pl-pds">"</span></span> would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/net_gpu_test (for architecture x86_64) option <span class="pl-s"><span class="pl-pds">"</span>-add_rpath /usr/local/cuda/lib<span class="pl-pds">"</span></span> would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/net_gpu_test (for architecture x86_64) option <span class="pl-s"><span class="pl-pds">"</span>-add_rpath /usr/local/cuda/lib<span class="pl-pds">"</span></span> would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/operator_gpu_test (for architecture x86_64) option <span class="pl-s"><span class="pl-pds">"</span>-add_rpath /usr/local/cuda/lib<span class="pl-pds">"</span></span> would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/operator_gpu_test (for architecture x86_64) option <span class="pl-s"><span class="pl-pds">"</span>-add_rpath /usr/local/cuda/lib<span class="pl-pds">"</span></span> would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/math_gpu_test (for architecture x86_64) option <span class="pl-s"><span class="pl-pds">"</span>-add_rpath /usr/local/cuda/lib<span class="pl-pds">"</span></span> would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/math_gpu_test (for architecture x86_64) option <span class="pl-s"><span class="pl-pds">"</span>-add_rpath /usr/local/cuda/lib<span class="pl-pds">"</span></span> would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/conv_op_cache_cudnn_test (for architecture x86_64) option <span class="pl-s"><span class="pl-pds">"</span>-add_rpath /usr/local/cuda/lib<span class="pl-pds">"</span></span> would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/conv_op_cache_cudnn_test (for architecture x86_64) option <span class="pl-s"><span class="pl-pds">"</span>-add_rpath /usr/local/cuda/lib<span class="pl-pds">"</span></span> would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/batch_matmul_op_gpu_test (for architecture x86_64) option <span class="pl-s"><span class="pl-pds">"</span>-add_rpath /usr/local/cuda/lib<span class="pl-pds">"</span></span> would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/batch_matmul_op_gpu_test (for architecture x86_64) option <span class="pl-s"><span class="pl-pds">"</span>-add_rpath /usr/local/cuda/lib<span class="pl-pds">"</span></span> would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/elementwise_op_gpu_test (for architecture x86_64) option <span class="pl-s"><span class="pl-pds">"</span>-add_rpath /usr/local/cuda/lib<span class="pl-pds">"</span></span> would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/elementwise_op_gpu_test (for architecture x86_64) option <span class="pl-s"><span class="pl-pds">"</span>-add_rpath /usr/local/cuda/lib<span class="pl-pds">"</span></span> would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/operator_fallback_gpu_test (for architecture x86_64) option <span class="pl-s"><span class="pl-pds">"</span>-add_rpath /usr/local/cuda/lib<span class="pl-pds">"</span></span> would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/operator_fallback_gpu_test (for architecture x86_64) option <span class="pl-s"><span class="pl-pds">"</span>-add_rpath /usr/local/cuda/lib<span class="pl-pds">"</span></span> would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/reshape_op_gpu_test (for architecture x86_64) option <span class="pl-s"><span class="pl-pds">"</span>-add_rpath /usr/local/cuda/lib<span class="pl-pds">"</span></span> would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/reshape_op_gpu_test (for architecture x86_64) option <span class="pl-s"><span class="pl-pds">"</span>-add_rpath /usr/local/cuda/lib<span class="pl-pds">"</span></span> would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/roi_align_op_gpu_test (for architecture x86_64) option <span class="pl-s"><span class="pl-pds">"</span>-add_rpath /usr/local/cuda/lib<span class="pl-pds">"</span></span> would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/roi_align_op_gpu_test (for architecture x86_64) option <span class="pl-s"><span class="pl-pds">"</span>-add_rpath /usr/local/cuda/lib<span class="pl-pds">"</span></span> would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/utility_ops_gpu_test (for architecture x86_64) option <span class="pl-s"><span class="pl-pds">"</span>-add_rpath /usr/local/cuda/lib<span class="pl-pds">"</span></span> would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/test/utility_ops_gpu_test (for architecture x86_64) option <span class="pl-s"><span class="pl-pds">"</span>-add_rpath /usr/local/cuda/lib<span class="pl-pds">"</span></span> would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/lib/python3.6/site-packages/caffe2/python/caffe2_pybind11_state_gpu.cpython-36m-darwin.so (for architecture x86_64) option <span class="pl-s"><span class="pl-pds">"</span>-add_rpath /usr/local/cuda/lib<span class="pl-pds">"</span></span> would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/lib/libtorch.1.dylib (for architecture x86_64) option <span class="pl-s"><span class="pl-pds">"</span>-add_rpath /usr/local/cuda/lib<span class="pl-pds">"</span></span> would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/lib/libtorch.1.dylib (for architecture x86_64) option <span class="pl-s"><span class="pl-pds">"</span>-add_rpath /usr/local/cuda/lib<span class="pl-pds">"</span></span> would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/lib/libcaffe2_detectron_ops_gpu.dylib (for architecture x86_64) option <span class="pl-s"><span class="pl-pds">"</span>-add_rpath /usr/local/cuda/lib<span class="pl-pds">"</span></span> would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Volumes/llv24macOS/git_projects/ml/pytorch/torch/lib/tmp_install/lib/libcaffe2_detectron_ops_gpu.dylib (for architecture x86_64) option <span class="pl-s"><span class="pl-pds">"</span>-add_rpath /usr/local/cuda/lib<span class="pl-pds">"</span></span> would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
+ [[ ON <span class="pl-k">==</span> <span class="pl-cce">\O\N</span> ]]
++ <span class="pl-c1">pwd</span>
++ <span class="pl-c1">cd</span> ..
++ <span class="pl-c1">pwd</span>
+ <span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">'</span>Copying Caffe2 proto files from /Volumes/llv24macOS/git_projects/ml/pytorch/build/caffe2/proto to  /Volumes/llv24macOS/git_projects/ml/pytorch/caffe2/proto<span class="pl-pds">'</span></span>
Copying Caffe2 proto files from /Volumes/llv24macOS/git_projects/ml/pytorch/build/caffe2/proto to  /Volumes/llv24macOS/git_projects/ml/pytorch/caffe2/proto
++ find caffe2/proto
+ <span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">'</span>All the files in caffe2/proto are caffe2/proto</span>
<span class="pl-s">caffe2/proto/CMakeFiles</span>
<span class="pl-s">caffe2/proto/CMakeFiles/Caffe2_PROTO.dir</span>
<span class="pl-s">caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/flags.make</span>
<span class="pl-s">caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/progress.make</span>
<span class="pl-s">caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/hsm.pb.cc.o</span>
<span class="pl-s">caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/cmake_clean.cmake</span>
<span class="pl-s">caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/torch.pb.cc.o</span>
<span class="pl-s">caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/build.make</span>
<span class="pl-s">caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/DependInfo.cmake</span>
<span class="pl-s">caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/depend.make</span>
<span class="pl-s">caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/CXX.includecache</span>
<span class="pl-s">caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/depend.internal</span>
<span class="pl-s">caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/caffe2.pb.cc.o</span>
<span class="pl-s">caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/prof_dag.pb.cc.o</span>
<span class="pl-s">caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/metanet.pb.cc.o</span>
<span class="pl-s">caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/predictor_consts.pb.cc.o</span>
<span class="pl-s">caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/caffe2_legacy.pb.cc.o</span>
<span class="pl-s">caffe2/proto/CMakeFiles/CMakeDirectoryInformation.cmake</span>
<span class="pl-s">caffe2/proto/CMakeFiles/progress.marks</span>
<span class="pl-s">caffe2/proto/__init__.py</span>
<span class="pl-s">caffe2/proto/prof_dag.pb.cc</span>
<span class="pl-s">caffe2/proto/Makefile</span>
<span class="pl-s">caffe2/proto/hsm.pb.cc</span>
<span class="pl-s">caffe2/proto/cmake_install.cmake</span>
<span class="pl-s">caffe2/proto/CTestTestfile.cmake</span>
<span class="pl-s">caffe2/proto/prof_dag.pb.h</span>
<span class="pl-s">caffe2/proto/hsm.pb.h</span>
<span class="pl-s">caffe2/proto/caffe2_legacy.pb.cc</span>
<span class="pl-s">caffe2/proto/predictor_consts.pb.cc</span>
<span class="pl-s">caffe2/proto/caffe2_legacy.pb.h</span>
<span class="pl-s">caffe2/proto/predictor_consts.pb.h</span>
<span class="pl-s">caffe2/proto/torch.pb.cc</span>
<span class="pl-s">caffe2/proto/torch.pb.h</span>
<span class="pl-s">caffe2/proto/metanet.pb.cc</span>
<span class="pl-s">caffe2/proto/metanet.pb.h</span>
<span class="pl-s">caffe2/proto/caffe2.pb.cc</span>
<span class="pl-s">caffe2/proto/caffe2.pb.h</span>
<span class="pl-s">caffe2/proto/prof_dag_pb2.py</span>
<span class="pl-s">caffe2/proto/hsm_pb2.py</span>
<span class="pl-s">caffe2/proto/metanet_pb2.py</span>
<span class="pl-s">caffe2/proto/caffe2_legacy_pb2.py</span>
<span class="pl-s">caffe2/proto/predictor_consts_pb2.py</span>
<span class="pl-s">caffe2/proto/torch_pb2.py</span>
<span class="pl-s">caffe2/proto/caffe2_pb2.py<span class="pl-pds">'</span></span>
All the files <span class="pl-k">in</span> caffe2/proto are caffe2/proto
caffe2/proto/CMakeFiles
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/flags.make
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/progress.make
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/hsm.pb.cc.o
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/cmake_clean.cmake
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/torch.pb.cc.o
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/build.make
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/DependInfo.cmake
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/depend.make
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/CXX.includecache
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/depend.internal
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/caffe2.pb.cc.o
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/prof_dag.pb.cc.o
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/metanet.pb.cc.o
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/predictor_consts.pb.cc.o
caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/caffe2_legacy.pb.cc.o
caffe2/proto/CMakeFiles/CMakeDirectoryInformation.cmake
caffe2/proto/CMakeFiles/progress.marks
caffe2/proto/__init__.py
caffe2/proto/prof_dag.pb.cc
caffe2/proto/Makefile
caffe2/proto/hsm.pb.cc
caffe2/proto/cmake_install.cmake
caffe2/proto/CTestTestfile.cmake
caffe2/proto/prof_dag.pb.h
caffe2/proto/hsm.pb.h
caffe2/proto/caffe2_legacy.pb.cc
caffe2/proto/predictor_consts.pb.cc
caffe2/proto/caffe2_legacy.pb.h
caffe2/proto/predictor_consts.pb.h
caffe2/proto/torch.pb.cc
caffe2/proto/torch.pb.h
caffe2/proto/metanet.pb.cc
caffe2/proto/metanet.pb.h
caffe2/proto/caffe2.pb.cc
caffe2/proto/caffe2.pb.h
caffe2/proto/prof_dag_pb2.py
caffe2/proto/hsm_pb2.py
caffe2/proto/metanet_pb2.py
caffe2/proto/caffe2_legacy_pb2.py
caffe2/proto/predictor_consts_pb2.py
caffe2/proto/torch_pb2.py
caffe2/proto/caffe2_pb2.py
++ <span class="pl-c1">pwd</span>
+ <span class="pl-k">for</span> <span class="pl-smi">proto_file</span> <span class="pl-k">in</span> <span class="pl-s"><span class="pl-pds">'</span>$(pwd)/caffe2/proto/*.py<span class="pl-pds">'</span></span>
++ <span class="pl-c1">pwd</span>
+ cp /Volumes/llv24macOS/git_projects/ml/pytorch/build/caffe2/proto/__init__.py /Volumes/llv24macOS/git_projects/ml/pytorch/build/../caffe2/proto/
cp: /Volumes/llv24macOS/git_projects/ml/pytorch/build/../caffe2/proto/__init__.py and /Volumes/llv24macOS/git_projects/ml/pytorch/build/caffe2/proto/__init__.py are identical (not copied).
Failed to run <span class="pl-s"><span class="pl-pds">'</span>bash ../tools/build_pytorch_libs.sh --use-cuda --use-nnpack caffe2 libshm THD<span class="pl-pds">'</span></span></pre></div>
<h2 dir="auto">Environment</h2>
<p dir="auto">$ python ~/Downloads/collect_env.py<br>
Collecting environment information...<br>
PyTorch version: 1.0.0.dev20181016<br>
Is debug build: No<br>
CUDA used to build PyTorch: Could not collect</p>
<p dir="auto">OS: Mac OSX 10.13.6<br>
GCC version: Could not collect<br>
CMake version: version 3.10.1</p>
<p dir="auto">Python version: 3.6<br>
Is CUDA available: No<br>
CUDA runtime version: 10.0.130<br>
GPU models and configuration: Could not collect<br>
Nvidia driver version: Could not collect<br>
cuDNN version: Probably one of the following:<br>
/usr/local/cuda/lib/libcudnn.7.dylib<br>
/usr/local/cuda/lib/libcudnn.dylib<br>
/usr/local/cuda/lib/libcudnn_static.a</p>
<p dir="auto">Versions of relevant libraries:<br>
[pip] Could not collect<br>
[conda] pytorch-nightly           1.0.0.dev20181016         py3.6_0    pytorch</p>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/malfet/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/malfet">@malfet</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/seemethere/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/seemethere">@seemethere</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/walterddr/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/walterddr">@walterddr</a></p>