Skip to main content

Posts

Showing posts from May, 2019

Uninstalling CUDA 10.0 cuDNN 7.4.2 on Ubuntu 18.04 and Install CUDA 8.0 cuDNN 5.1

https://davidstutz.de/upgrading-cuda-and-installing-cudnn-for-caffe-and-tensorflow/ Check Ubuntu Version: lsb_release -a Distributor ID: Ubuntu Description: Ubuntu 18.04.2 LTS Release: 18.04 Codename: bionic If NVIDIA Driver is not installed: cd ~/Downloads sudo sh ./NVIDIA-Linux-x86_64-410.104.run register the kernel module sources with dkms - no 32 bit - no X config - yes Check CUDA version: nvcc --version Check cuDNN version: whereis cudnn.h cudnn: /usr/include/cudnn.h cat /usr/include/cudnn.h | grep CUDNN_MAJOR -A 2 #define CUDNN_MAJOR 7 #define CUDNN_MINOR 4 #define CUDNN_PATCHLEVEL 2 -- #define CUDNN_VERSION (CUDNN_MAJOR * 1000 + CUDNN_MINOR * 100 + CUDNN_PATCHLEVEL) #include "driver_types.h" which means the version is 7.4.2. Uninstalling: Find the CUDA dir using: which nvcc Mine was: rb@rbhost:~$ which nvcc /usr/local/cuda-10.0/bin/nvcc To uninstall the CUDA Toolkit, run the uninstall script in `/usr/local/cuda-10.0/bin`

Install Caffe with GPU

The instruction are for: Caffe3D : Ubuntu, Caffe (2D) : Windows. The Caffe3D author did it in python 2.7, Ubuntu 14.04, CUDNN 5.1, CUDA 8.0 Read the errors at the end before you continue. And always make the Makefile.config yourself don't just copy paste. check for the folders carefully. Install Caffe 3D: Download  https://lmb.informatik.uni-freiburg.de/resources/opensource/caffe_unet_3D_v1.0.tar.gz Extract. Open README: git clone https://github.com/BVLC/caffe.git cd caffe git checkout 8c66fa5f3c04e -b unet_patch git cherry-pick 458928a # typo in installation.md git cherry-pick b43c8e4  # CuDNN 5 support git apply ../caffe_unet_3D_v1.0.patch # apply patch git add . git commit -m"U-Net 3D merged to BVLC/caffe 8c66fa5f3c04e" Then open: https://github.com/tbuikr/3D_DenseSeg Edit different files as mentioned there. Now need to compile for linux now: https://github.com/adeelz92/Install-Caffe-on-Ubuntu-16.04-Python-3 Error: libcudnn.so.5 is not a symbolic