you need to checkout the linux branch to get the fix : git checkout origin/linux -b linux
this is what my configure code looks like to get it to compile with a fresh git clone not the linux branch
I am compiling on ubuntu 14.04
NVCC="nvcc"
if test -n "$with_cuda"
then
CUDA_INCLUDES="-I$with_cuda/include"
CUDA_LIBS="-lcudart"
CUDA_LDFLAGS="-L$with_cuda/lib$SUFFIX"
if test -x "$with_cuda/bin/nvcc"
then
NVCC="$with_cuda/bin/nvcc"
else
abc="123"
fi
else
CUDA_INCLUDES="-I/usr/local/cuda/include"
CUDA_LIBS="-lcudart -static-libstdc++"
CUDA_LDFLAGS="-L/usr/local/cuda/lib$SUFFIX"
fi
if test -n "$with_nvml" ; then
NVML_LIBPATH=$with_nvml
CUDA_LDFLAGS="$CUDA_LDFLAGS -ldl"
fi