-
Notifications
You must be signed in to change notification settings - Fork 462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cudnn v2 required? #41
Comments
No, it should works with cudnnv2 if you would like to use that. Alternatively, you should be able to use caffe engine. Caffe Engine does a bit faster at the moment. There are already a few version available about the latest-caffe with CRF-RNN, you may find them in github other issues. |
I have cudnn v4 and thought that was a problem; but the makefile has lines to be uncommented for this. It compiled fine, so no issue |
Which lines should be un commented? I have compiling problem since I have cuDNN V4 |
there are a series of lines in the makefile.config that you can uncomment depending upon your particular gpu .
|
you can uncomment one or more of these
|
I have used the Make.config file that I used to compile caffe. I have installed Cuda version 7.0. Here is my Make.config file Refer to http://caffe.berkeleyvision.org/installation.htmlContributions simplifying and improving our build system are welcome!cuDNN acceleration switch (uncomment to build with cuDNN).USE_CUDNN := 1 CPU-only switch (uncomment to build without GPU support).CPU_ONLY := 1uncomment to disable IO dependencies and corresponding data layersUSE_OPENCV := 0USE_LEVELDB := 0USE_LMDB := 0uncomment to allow MDB_NOLOCK when reading LMDB files (only if necessary)You should not set this flag if you will be reading LMDBs with anypossibility of simultaneous read and writeALLOW_LMDB_NOLOCK := 1Uncomment if you're using OpenCV 3OPENCV_VERSION := 3To customize your choice of compiler, uncomment and set the following.N.B. the default for Linux is g++ and the default for OSX is clang++CUSTOM_CXX := g++CUDA directory contains bin/ and lib/ directories that we need.CUDA_DIR := /usr/local/cuda On Ubuntu 14.04, if cuda tools are installed via"sudo apt-get install nvidia-cuda-toolkit" then use this instead:CUDA_DIR := /usrCUDA architecture setting: going with all of them.For CUDA < 6.0, comment the *_50 lines for compatibility.CUDA_ARCH := -gencode arch=compute_20,code=sm_20 BLAS choice:atlas for ATLAS (default)mkl for MKLopen for OpenBlasBLAS := atlas Custom (MKL/ATLAS/OpenBLAS) include and lib directories.Leave commented to accept the defaults for your choice of BLAS(which should work)!BLAS_INCLUDE := /path/to/your/blasBLAS_LIB := /path/to/your/blasHomebrew puts openblas in a directory that is not on the standard search pathBLAS_INCLUDE := $(shell brew --prefix openblas)/includeBLAS_LIB := $(shell brew --prefix openblas)/libThis is required only if you will compile the matlab interface.MATLAB directory should contain the mex binary in /bin.MATLAB_DIR := /usr/local/MATLAB/R2014a MATLAB_DIR := /Applications/MATLAB_R2012b.appNOTE: this is required only if you will compile the python interface.We need to be able to find Python.h and numpy/arrayobject.h.PYTHON_INCLUDE := /usr/include/python2.7 Anaconda Python distribution is quite popular. Include path:Verify anaconda location, sometimes it's in root.ANACONDA_HOME := $(HOME)/anaconda2 Uncomment to use Python 3 (default is Python 2)PYTHON_LIBRARIES := boost_python3 python3.5mPYTHON_INCLUDE := /usr/include/python3.5m \/usr/lib/python3.5/dist-packages/numpy/core/includeWe need to be able to find libpythonX.X.so or .dylib.#PYTHON_LIB := /usr/lib Homebrew installs numpy in a non standard path (keg only)PYTHON_INCLUDE +=
|
This is the Error I am having:
(157): here 20 errors detected in the compilation of "/tmp/tmpxft_00004fb4_00000000-16_cudnn_conv_layer.compute_50.cpp1.ii". |
Hey, these are warning message. The code in this github repository supports cudnn version <=3.0, If you want to make it works with cudnn version=4.0 or 5.0, please check the error message and make some changes on the function name or variable names. This should be easy to search on the cudnn manual. Check example here: |
After installing cudnn V3 compilation works also the python demo code. Thanks a lot! |
After looking up the compile error
src/caffe/layers/cudnn_conv_layer.cu(67): error: argument of type "cudnnAddMode_t" is incompatible with parameter of type "const void *"
it seems to result from using cudnnv4 instead of v2. Is it the case that this code requires cudnnv2?
The text was updated successfully, but these errors were encountered: