title: Install dlib error not found cublas_v2
body: <p>Trying to install dlib with GPU support.
  Use tf image</p>
  
  <pre><code>FROM tensorflow/tensorflow:latest-gpu-py3
  </code></pre>
  
  <p>Install cudnn</p>
  
  <pre><code>COPY cudnn-9.0-linux-x64-v7.1.tgz ./
  RUN tar -zxvf cudnn-9.0-linux-x64-v7.1.tgz
  RUN cp -P cuda/include/cudnn.h /usr/local/cuda/include
  RUN cp -P cuda/lib64/libcudnn* /usr/local/cuda/lib64
  RUN chmod a+r /usr/local/cuda/include/cudnn.h /usr/local/cuda/lib64/libcudnn*
  </code></pre>
  
  <p>And than install dlib</p>
  
  <pre><code>RUN git clone https://github.com/davisking/dlib
  RUN cd dlib &amp;&amp; python3 setup.py install
  </code></pre>
  
  <p>I get this error </p>
  
  <blockquote>
    <p>[  1%] Building NVCC (Device) object
    dlib_build/CMakeFiles/dlib.dir/cuda/dlib_generated_cuda_dlib.cu.o [ 
    1%] Building NVCC (Device) object
    dlib_build/CMakeFiles/dlib.dir/cuda/dlib_generated_cusolver_dlibapi.cu.o
    /notebooks/dlib/dlib/cuda/cusolver_dlibapi.cu:9:23: fatal error:
    cublas_v2.h: No such file or directory compilation terminated. CMake
    Error at dlib_generated_cusolver_dlibapi.cu.o.cmake:207 (message):<br>
    Error generating<br>
    /notebooks/dlib/build/temp.linux-x86_64-3.5/dlib_build/CMakeFiles/dlib.dir/cuda/./dlib_generated_cusolver_dlibapi.cu.o</p>
  </blockquote>
  
  <p>if I don't install cudnn dlib builds successfully but with notification that it doesn't use CUDA. </p>
  
  <p>Tried to google but people write to set USE_CPU_ONLY=1 (they have the error for caffe) which is not what I need.</p>