title: Segmentation fault when compiling Darknet for GPU
body: <p>I want to compile the Darknet framework for machine learning on my PC with GPU support. However I call make I will get a segmentation fault:</p>
  
  <pre><code>nvcc  -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_50,code=[sm_50,compute_50] -gencode arch=compute_52,code=[sm_52,compute_52] -Iinclude/ -Isrc/ -DOPENCV `pkg-config --cflags opencv`  -DGPU -I/usr/local/cuda/include/ --compiler-options "-Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -DOPENCV -DGPU" -c ./src/convolutional_kernels.cu -o obj/convolutional_kernels.o
  Segmentation fault (core dumped)
  Makefile:92: recipe for target 'obj/convolutional_kernels.o' failed
  make: *** [obj/convolutional_kernels.o] Error 139
  </code></pre>
  
  <p><em>nvidia-smi</em> gives me following information:</p>
  
  <pre><code>NVIDIA-SMI 418.87.01    Driver Version: 418.87.01    CUDA Version: 10.1
  </code></pre>
  
  <p>When I do <em>nvcc --version</em> I get:</p>
  
  <pre><code>nvcc: NVIDIA (R) Cuda compiler driver
  Copyright (c) 2005-2017 NVIDIA Corporation
  Built on Fri_Nov__3_21:07:56_CDT_2017
  Cuda compilation tools, release 9.1, V9.1.85
  </code></pre>
  
  <p>The CUDA Version 10.1 is not the same as the Verions 9.1 of the Cuda compilation tools. Could this be the problem? NVCC is installed via <em>apt install nvidia-cuda-toolkit</em></p>