Repository: pytorch
Issue: [Caffe2] Segmentation fault (core dumped) while import caffe2.python.core
Labels: caffe2

## 🐛 Bug

When I want to import caffe2.pytho.core, I get a Segmentation fault.

I followed the install guide for ubuntu 16 with prebuilt binaries and also installed nccl, I've been browsing past issues but can't find a solution.

please help me

## To Reproduce

Steps to reproduce the behavior:

1. Install NCCL 2.3.5
2. conda install -c caffe2 caffe2-cuda9.0-cudnn7
3. import caffe2.python.core

ERROR : 
```
WARNING:root:This caffe2 python run does not have GPU support. Will run in CPU only mode.
Segmentation fault (core dumped)
```


## Environment

```
uname -a
Linux realAI 4.4.0-131-generic #157-Ubuntu SMP Thu Jul 12 15:51:36 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
```
Followed : [](https://caffe2.ai/docs/getting-started.html?platform=ubuntu&configuration=prebuilt)

Cmake : I installed with anaconda I can't find the cmake output

```
which python
/home/mputtnam/anaconda3/bin/python

which pip
/home/mputtnam/anaconda3/bin/pip

echo $PYTHONPATH
<blank>
```

```
nvidia-smi
Thu Oct  4 08:35:22 2018
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 396.54                 Driver Version: 396.54                    |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  Quadro K4000        Off  | 00000000:02:00.0  On |                  N/A |
| 30%   38C    P8    11W /  87W |    419MiB /  3010MiB |      3%      Default |
+-------------------------------+----------------------+----------------------+
|   1  Quadro K4000        Off  | 00000000:81:00.0 Off |                  N/A |
| 30%   33C    P8    10W /  87W |      1MiB /  3018MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|   2  Quadro K4000        Off  | 00000000:82:00.0 Off |                  N/A |
| 30%   32C    P8    10W /  87W |      1MiB /  3018MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0      1974      G   /usr/lib/xorg/Xorg                           210MiB |
|    0      2955      G   compiz                                       180MiB |
|    0      4925      G   /usr/bin/nvidia-settings                      24MiB |
+-----------------------------------------------------------------------------+

```
```
nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2015 NVIDIA Corporation
Built on Tue_Aug_11_14:27:32_CDT_2015
Cuda compilation tools, release 7.5, V7.5.17

ls -lah /usr/local/cuda
lrwxrwxrwx 1 root root 8 Oct  3 08:35 /usr/local/cuda -> cuda-9.0


```