Repository: pytorch
Issue: cuda support
Labels: module: build,triaged

I am trying to install pytorch from source but the installation does not recognize cuda. The torch.cuda.is_available shows FALSE. Please help!

Below is my installation log 

```
Building wheel torch-1.4.0a0+7903fb1
-- Building version 1.4.0a0+7903fb1
cmake --build . --target install --config Release -- -j 6
[0/1] Install the project...
-- Install configuration: "Release"
running install
running build
running build_py
copying torch/version.py -> build/lib.linux-x86_64-3.7/torch
copying caffe2/proto/predictor_consts_pb2.py -> build/lib.linux-x86_64-3.7/caffe2/proto
copying caffe2/proto/caffe2_pb2.py -> build/lib.linux-x86_64-3.7/caffe2/proto
copying caffe2/proto/prof_dag_pb2.py -> build/lib.linux-x86_64-3.7/caffe2/proto
copying caffe2/proto/metanet_pb2.py -> build/lib.linux-x86_64-3.7/caffe2/proto
copying caffe2/proto/caffe2_legacy_pb2.py -> build/lib.linux-x86_64-3.7/caffe2/proto
copying caffe2/proto/torch_pb2.py -> build/lib.linux-x86_64-3.7/caffe2/proto
copying caffe2/proto/hsm_pb2.py -> build/lib.linux-x86_64-3.7/caffe2/proto
running build_ext
-- Building with NumPy bindings
-- Not using cuDNN
-- Not using CUDA
-- Using MKLDNN
-- Not using CBLAS in MKLDNN
-- Not using NCCL
-- Building with distributed package

Copying extension caffe2.python.caffe2_pybind11_state
Copying caffe2.python.caffe2_pybind11_state from torch/lib/python3.7/site-packages/caffe2/python/caffe2_pybind11_state.cpython-37m-x86_64-linux-gnu.so to /data001/pytorch/build/lib.linux-x86_64-3.7/caffe2/python/caffe2_pybind11_state.cpython-37m-x86_64-linux-gnu.so
running install_lib
copying build/lib.linux-x86_64-3.7/caffe2/proto/predictor_consts_pb2.py -> /root/anaconda3/lib/python3.7/site-packages/caffe2/proto
copying build/lib.linux-x86_64-3.7/caffe2/proto/caffe2_pb2.py -> /root/anaconda3/lib/python3.7/site-packages/caffe2/proto
copying build/lib.linux-x86_64-3.7/caffe2/proto/prof_dag_pb2.py -> /root/anaconda3/lib/python3.7/site-packages/caffe2/proto
copying build/lib.linux-x86_64-3.7/caffe2/proto/metanet_pb2.py -> /root/anaconda3/lib/python3.7/site-packages/caffe2/proto
copying build/lib.linux-x86_64-3.7/caffe2/proto/caffe2_legacy_pb2.py -> /root/anaconda3/lib/python3.7/site-packages/caffe2/proto
copying build/lib.linux-x86_64-3.7/caffe2/proto/torch_pb2.py -> /root/anaconda3/lib/python3.7/site-packages/caffe2/proto
copying build/lib.linux-x86_64-3.7/caffe2/proto/hsm_pb2.py -> /root/anaconda3/lib/python3.7/site-packages/caffe2/proto
copying build/lib.linux-x86_64-3.7/torch/version.py -> /root/anaconda3/lib/python3.7/site-packages/torch
byte-compiling /root/anaconda3/lib/python3.7/site-packages/caffe2/proto/predictor_consts_pb2.py to predictor_consts_pb2.cpython-37.pyc
byte-compiling /root/anaconda3/lib/python3.7/site-packages/caffe2/proto/caffe2_pb2.py to caffe2_pb2.cpython-37.pyc
byte-compiling /root/anaconda3/lib/python3.7/site-packages/caffe2/proto/prof_dag_pb2.py to prof_dag_pb2.cpython-37.pyc
byte-compiling /root/anaconda3/lib/python3.7/site-packages/caffe2/proto/metanet_pb2.py to metanet_pb2.cpython-37.pyc
byte-compiling /root/anaconda3/lib/python3.7/site-packages/caffe2/proto/caffe2_legacy_pb2.py to caffe2_legacy_pb2.cpython-37.pyc
byte-compiling /root/anaconda3/lib/python3.7/site-packages/caffe2/proto/torch_pb2.py to torch_pb2.cpython-37.pyc
byte-compiling /root/anaconda3/lib/python3.7/site-packages/caffe2/proto/hsm_pb2.py to hsm_pb2.cpython-37.pyc
byte-compiling /root/anaconda3/lib/python3.7/site-packages/torch/version.py to version.cpython-37.pyc
running install_egg_info
running egg_info
writing torch.egg-info/PKG-INFO
writing dependency_links to torch.egg-info/dependency_links.txt
writing entry points to torch.egg-info/entry_points.txt
writing top-level names to torch.egg-info/top_level.txt
reading manifest file 'torch.egg-info/SOURCES.txt'
writing manifest file 'torch.egg-info/SOURCES.txt'
removing '/root/anaconda3/lib/python3.7/site-packages/torch-1.4.0a0+7903fb1-py3.7.egg-info' (and everything under it)
Copying torch.egg-info to /root/anaconda3/lib/python3.7/site-packages/torch-1.4.0a0+7903fb1-py3.7.egg-info
```