NVIDIA / gpu-rest-engine

A REST API for Caffe using Docker and Go
BSD 3-Clause "New" or "Revised" License
421 stars 94 forks source link

opencv error(related to nppi) when docker build #25

Closed wonjin911 closed 6 years ago

wonjin911 commented 6 years ago

I'm trying to build an inference-server docker image, but when docker build Dockerfile.tensorrt_server, i got this error. please help.

-- Configuring incomplete, errors occurred!
See also "/opencv/CMakeFiles/CMakeOutput.log".
See also "/opencv/CMakeFiles/CMakeError.log".
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CUDA_nppi_LIBRARY (ADVANCED)
    linked by target "opencv_cudev" in directory /opencv/modules/cudev
    linked by target "opencv_cudev" in directory /opencv/modules/cudev
    linked by target "opencv_perf_core" in directory /opencv/modules/core
    linked by target "opencv_core" in directory /opencv/modules/core
    linked by target "opencv_core" in directory /opencv/modules/core
    linked by target "opencv_perf_cudaarithm" in directory /opencv/modules/cudaarithm
    linked by target "opencv_cudaarithm" in directory /opencv/modules/cudaarithm
    linked by target "opencv_cudaarithm" in directory /opencv/modules/cudaarithm
    linked by target "opencv_imgproc" in directory /opencv/modules/imgproc
    linked by target "opencv_imgproc" in directory /opencv/modules/imgproc
    linked by target "opencv_perf_imgproc" in directory /opencv/modules/imgproc
    linked by target "opencv_perf_video" in directory /opencv/modules/video
    linked by target "opencv_video" in directory /opencv/modules/video
    linked by target "opencv_video" in directory /opencv/modules/video
    linked by target "opencv_perf_cudafilters" in directory /opencv/modules/cudafilters
    linked by target "opencv_cudafilters" in directory /opencv/modules/cudafilters
    linked by target "opencv_cudafilters" in directory /opencv/modules/cudafilters
    linked by target "opencv_perf_cudaimgproc" in directory /opencv/modules/cudaimgproc
    linked by target "opencv_cudaimgproc" in directory /opencv/modules/cudaimgproc
    linked by target "opencv_cudaimgproc" in directory /opencv/modules/cudaimgproc
    linked by target "opencv_perf_cudawarping" in directory /opencv/modules/cudawarping
    linked by target "opencv_cudawarping" in directory /opencv/modules/cudawarping
    linked by target "opencv_cudawarping" in directory /opencv/modules/cudawarping
    linked by target "opencv_perf_imgcodecs" in directory /opencv/modules/imgcodecs
    linked by target "opencv_imgcodecs" in directory /opencv/modules/imgcodecs
    linked by target "opencv_imgcodecs" in directory /opencv/modules/imgcodecs
    linked by target "opencv_perf_videoio" in directory /opencv/modules/videoio
    linked by target "opencv_videoio" in directory /opencv/modules/videoio
    linked by target "opencv_videoio" in directory /opencv/modules/videoio
    linked by target "opencv_perf_cudacodec" in directory /opencv/modules/cudacodec
    linked by target "opencv_cudacodec" in directory /opencv/modules/cudacodec
    linked by target "opencv_cudacodec" in directory /opencv/modules/cudacodec
    linked by target "opencv_highgui" in directory /opencv/modules/highgui
    linked by target "opencv_highgui" in directory /opencv/modules/highgui
    linked by target "opencv_ts" in directory /opencv/modules/ts
    linked by target "opencv_ts" in directory /opencv/modules/ts
wonjin911 commented 6 years ago

it was version issue.

Mistobaan commented 6 years ago

@wonjin911 what did you change to fix it?

Mistobaan commented 6 years ago

I found out that I had to use cuda 8.0 to fix the problem.