title: Get CUDA_HOME environment path PYTORCH
body: <p>I have cuda installed via anaconda on my system which has 2 GPUs which is getting recognized by my python. </p>
  
  <pre><code>import torch
  torch.cuda.is_available()
  true
  </code></pre>
  
  <p>However when I try to run a model via its C API, I m getting following error:</p>
  
  <pre><code>~/anaconda3/lib/python3.6/site-packages/torch/utils/cpp_extension.py in _join_cuda_home(*paths)
  722     '''
  723     if CUDA_HOME is None:
  --&gt; 724         raise EnvironmentError('CUDA_HOME environment variable is not set. '
  725                                'Please set it to your CUDA install root.')
  726     return os.path.join(CUDA_HOME, *paths)
  
  OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.
  </code></pre>
  
  <p><a href="https://lfd.readthedocs.io/en/latest/install_gpu.html" rel="noreferrer">https://lfd.readthedocs.io/en/latest/install_gpu.html</a> page gives instruction to set up CUDA_HOME path if cuda is installed via their method. Since I have installed cuda via anaconda I don't know which path to set.</p>
  
  <p>I tried find method but it is returning me too many paths for cuda. Can somebody help me with the path for CUDA. Thanks in advance.</p>