caffe icon indicating copy to clipboard operation
caffe copied to clipboard

Unable to build with CUDA-10.2 + CuDNN-8.0.1

Open MuhammadAsadJaved opened this issue 5 years ago • 3 comments

Important - read before submitting

I am trying to build with cuda-10.2 + cudnn 8.0 , but in cudnn I found cudnn_version information moved to cudnn_version.h but in older versions it was in cudnn.h so now during the build it also unable to find the cudnn version.

Note: before i was using on the system using cuda 10.0 and cudnn 7.4

Issue summary

I have tried both method .

Steps to reproduce

cd caffe make all and at this point throw erros.

the second method

mkdir build cd build cmake ..

it also throw erros.

Tried solutions

System configuration

  • Operating system: Ubuntu 16.04

  • Compiler: gcc --version gcc (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609

  • CUDA version (if applicable): 10.2

  • CUDNN version (if applicable): 8.0

  • BLAS:

  • Python version (if using pycaffe):

  • MATLAB version (if using matcaffe):

Issue checklist

Screenshot from 2020-10-29 20-57-56

MuhammadAsadJaved avatar Oct 29 '20 13:10 MuhammadAsadJaved

This problem puzzled me too. It token me 4 hours to make it work. Open the file “cmake/Cuda.cmake”. Find "file(READ ${CUDNN_INCLUDE}/cudnn.h CUDNN_VERSION_FILE_CONTENTS)",and replace "cudnn.h" with "cudnn_version.h".

HYK-baby avatar Nov 26 '20 09:11 HYK-baby

Thanks for your update.

On Thu, Nov 26, 2020 at 5:44 PM HYK-baby [email protected] wrote:

This problem puzzled me too. It token me 4 hours to make it work. Open the file “cmake/Cuda.cmake”. Find "file(READ ${CUDNN_INCLUDE}/cudnn.h CUDNN_VERSION_FILE_CONTENTS)",and replace "cudnn.h" with "cudnn_version.h".

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/BVLC/caffe/issues/6982#issuecomment-734190831, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG4GR5BKFKS2SQROFDI7LYLSRYPPLANCNFSM4TDWOBEA .

MuhammadAsadJaved avatar Nov 26 '20 10:11 MuhammadAsadJaved

see #6970 for a cuDNN 8.0 solution

Qengineering avatar Dec 03 '20 11:12 Qengineering