Ubuntu 16.04, Nvidia toolkit 8.0 RC, darknet compilation error: expected a ";"
<p>I am compiling <a href="https://github.com/pjreddie/darknet" rel="noreferrer">Darknet</a> on Ubuntu 16.04 with GPU support.
Nvidial toolkit version 8.0 RC</p>

<p>And I get stuck with error:</p>

<pre><code>nvcc --gpu-architecture=compute_52 --gpu-code=compute_52  -DOPENCV `pkg-config --cflags opencv`  -DGPU -I/usr/local/cuda/include/ --compiler-options "-Wall -Wfatal-errors  -Ofast -DOPENCV -DGPU" -c ./src/convolutional_kernels.cu -o obj/convolutional_kernels.o
/usr/local/cuda/include/surface_functions.h(134): error: expected a ";"

/usr/local/cuda/include/surface_functions.h(135): error: expected a ";"

/usr/local/cuda/include/surface_functions.h(136): error: expected a ";"
</code></pre>

<p>/usr/local/cuda/include/surface_functions.h at error lines has something like this:</p>

<pre><code>template&lt;&gt; __device__ __cudart_builtin__ char surf1Dread(surface&lt;void, cudaSurfaceType1D&gt; surf, int x, enum cudaSurfaceBoundaryMode mode) asm("__surf1Dread_char") ;
</code></pre>

<p>Any advice ?</p>