i compiling darknet on ubuntu 16.04 gpu support. nvidial toolkit version 8.0 rc
and stuck error:
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 ";" /usr/local/cuda/include/surface_functions.h(135): error: expected ";" /usr/local/cuda/include/surface_functions.h(136): error: expected ";"
/usr/local/cuda/include/surface_functions.h @ error lines has this:
template<> __device__ __cudart_builtin__ char surf1dread(surface<void, cudasurfacetype1d> surf, int x, enum cudasurfaceboundarymode mode) asm("__surf1dread_char") ;
any advice ?
if have several versions of cuda installed , need them (like me), recommend adding following (bash) rc:
# darknet export path=/usr/local/cuda-8.0/bin${path:+:${path}} export ld_library_path=/usr/local/cuda8.0/lib64${ld_library_path:+:${ld_library_path}}
source rc ('. ~/.bashrc') , complilation works!
Comments
Post a Comment