# Verify cuDNN install failed

**URL:** <https://forums.developer.nvidia.com/t/verify-cudnn-install-failed/167220>\
**Category:** cuDNN\
**Tags:** cudnn\
**Created:** [January 31, 2021, 9:49am UTC](https://forums.developer.nvidia.com/t/verify-cudnn-install-failed/167220 "2021-01-31T09:49:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![1chimaruGin](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/1chimarugin/32/56465_2.png) [@1chimaruGin](https://forums.developer.nvidia.com/u/1chimaruGin)\
**Post date:** [January 31, 2021, 9:49am UTC](https://forums.developer.nvidia.com/t/verify-cudnn-install-failed/167220/1 "2021-01-31T09:49:08Z")

</div>

After install cuda 11.2 and cudnn 8.1.0, can’t make mnistCUDNN

```auto
m -rf *o
rm -rf mnistCUDNN
CUDA_VERSION is 11020
Linking agains cublasLt = true
CUDA VERSION: 11020
TARGET ARCH: x86_64
HOST_ARCH: x86_64
TARGET OS: linux
SMS: 35 50 53 60 61 62 70 72 75 80 86
/bin/sh: 1: cannot create test.c: Permission denied
/bin/sh: 1: cannot create test.c: Permission denied
g++: error: test.c: No such file or directory
g++: warning: ‘-x c’ after last input file has no effect
g++: fatal error: no input files
compilation terminated.
>>> WARNING - FreeImage is not set up correctly. Please ensure FreeImage is set up correctly. <<<
[@] /usr/local/cuda/bin/nvcc -ccbin g++ -I/usr/local/cuda/include -I/usr/local/cuda/targets/ppc64le-linux/include -IFreeImage/include -m64 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_53,code=sm_53 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_62,code=sm_62 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_72,code=sm_72 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_80,code=sm_80 -gencode arch=compute_86,code=sm_86 -gencode arch=compute_86,code=compute_86 -o fp16_dev.o -c fp16_dev.cu
[@] g++ -I/usr/local/cuda/include -I/usr/local/cuda/targets/ppc64le-linux/include -IFreeImage/include -o fp16_emu.o -c fp16_emu.cpp
[@] g++ -I/usr/local/cuda/include -I/usr/local/cuda/targets/ppc64le-linux/include -IFreeImage/include -o mnistCUDNN.o -c mnistCUDNN.cpp
[@] /usr/local/cuda/bin/nvcc -ccbin g++ -m64 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_53,code=sm_53 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_62,code=sm_62 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_72,code=sm_72 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_80,code=sm_80 -gencode arch=compute_86,code=sm_86 -gencode arch=compute_86,code=compute_86 -o mnistCUDNN fp16_dev.o fp16_emu.o mnistCUDNN.o -I/usr/local/cuda/include -I/usr/local/cuda/targets/ppc64le-linux/include -IFreeImage/include -L/usr/local/cuda/lib64 -L/usr/local/cuda/targets/ppc64le-linux/lib -lcublasLt -LFreeImage/lib/linux/x86_64 -LFreeImage/lib/linux -lcudart -lcublas -lcudnn -lfreeimage -lstdc++ -lm

```

---

<div class="post-metadata">

**Author:** ![AakankshaS](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aakankshas/32/14047_2.png) [@AakankshaS](https://forums.developer.nvidia.com/u/AakankshaS)\
**Post date:** [February 1, 2021, 6:07am UTC](https://forums.developer.nvidia.com/t/verify-cudnn-install-failed/167220/3 "2021-02-01T06:07:56Z")

</div>

Hi @1chimaruGin ,  
Can you please validate your steps from the installation guide.

> **[Installation Guide :: NVIDIA Deep Learning cuDNN Documentation](https://docs.nvidia.com/deeplearning/cudnn/install-guide/index.html)**
>
> This cuDNN 8.5.0 Installation Guide provides step-by-step instructions on how to install and check for correct operation of NVIDIA cuDNN on Linux and Microsoft Windows systems.

Thanks!

---

<div class="post-metadata">

**Author:** ![vetsa.sai](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/vetsa.sai/32/161190_2.png) [@vetsa.sai](https://forums.developer.nvidia.com/u/vetsa.sai)\
**Post date:** [November 17, 2022, 5:42pm UTC](https://forums.developer.nvidia.com/t/verify-cudnn-install-failed/167220/4 "2022-11-17T17:42:59Z")

</div>

Facing the same issue. Please guide me if there is a solution already available.

```auto
carla@PCFKYHSK3:~$ cp -r /usr/src/cudnn_samples_v8/ $HOME
(base) carla@PCFKYHSK3:~$ cd $HOME/cudnn_samples_v8/mnistCUDNN
(base) carla@PCFKYHSK3:~/cudnn_samples_v8/mnistCUDNN$ make clean && make
rm -rf *o
rm -rf mnistCUDNN
CUDA_VERSION is 11080
Linking agains cublasLt = true
CUDA VERSION: 11080
TARGET ARCH: x86_64
HOST_ARCH: x86_64
TARGET OS: linux
SMS: 35 50 53 60 61 62 70 72 75 80 86 87
test.c:1:10: fatal error: FreeImage.h: No such file or directory
    1 | #include "FreeImage.h"
      | ^ ~~~~~~~~~~~~
compilation terminated.
>>> WARNING - FreeImage is not set up correctly. Please ensure FreeImage is set up correctly. <<<
[@] /usr/local/cuda/bin/nvcc -I/usr/local/cuda/include -I/usr/local/cuda/include -IFreeImage/include -ccbin g++ -m64 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_53,code=sm_53 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_62,code=sm_62 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_72,code=sm_72 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_80,code=sm_80 -gencode arch=compute_86,code=sm_86 -gencode arch=compute_87,code=sm_87 -gencode arch=compute_87,code=compute_87 -o fp16_dev.o -c fp16_dev.cu
[@] g++ -I/usr/local/cuda/include -I/usr/local/cuda/include -IFreeImage/include -o fp16_emu.o -c fp16_emu.cpp
[@] g++ -I/usr/local/cuda/include -I/usr/local/cuda/include -IFreeImage/include -o mnistCUDNN.o -c mnistCUDNN.cpp
[@] /usr/local/cuda/bin/nvcc -ccbin g++ -m64 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_53,code=sm_53 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_62,code=sm_62 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_72,code=sm_72 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_80,code=sm_80 -gencode arch=compute_86,code=sm_86 -gencode arch=compute_87,code=sm_87 -gencode arch=compute_87,code=compute_87 -o mnistCUDNN fp16_dev.o fp16_emu.o mnistCUDNN.o -I/usr/local/cuda/include -I/usr/local/cuda/include -IFreeImage/include -L/usr/local/cuda/lib64 -L/usr/local/cuda/lib64 -L/usr/local/cuda/lib64 -lcublasLt -LFreeImage/lib/linux/x86_64 -LFreeImage/lib/linux -lcudart -lcublas -lcudnn -lfreeimage -lstdc++ -lm

```

---

<div class="post-metadata">

**Author:** ![vetsa.sai](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/vetsa.sai/32/161190_2.png) [@vetsa.sai](https://forums.developer.nvidia.com/u/vetsa.sai)\
**Post date:** [November 17, 2022, 5:51pm UTC](https://forums.developer.nvidia.com/t/verify-cudnn-install-failed/167220/5 "2022-11-17T17:51:40Z")

</div>

```auto
sudo apt-get install g++ freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libglu1-mesa libglu1-mesa-dev
sudo apt-get install libfreeimage3 libfreeimage-dev

```

This worked for me

---

<div class="post-metadata">

**Author:** ![1258594650](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@1258594650](https://forums.developer.nvidia.com/u/1258594650)\
**Post date:** [April 18, 2023, 3:18am UTC](https://forums.developer.nvidia.com/t/verify-cudnn-install-failed/167220/6 "2023-04-18T03:18:29Z")

</div>

Thank you very much!

---

<div class="post-metadata">

**Author:** ![markkupilarinen](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@markkupilarinen](https://forums.developer.nvidia.com/u/markkupilarinen)\
**Post date:** [August 2, 2024, 6:05pm UTC](https://forums.developer.nvidia.com/t/verify-cudnn-install-failed/167220/9 "2024-08-02T18:05:02Z")

</div>

Thank you. This worked for me

---

<div class="post-metadata">

**Author:** ![max.v.zaikin](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/max.v.zaikin/32/329198_2.png) [@max.v.zaikin](https://forums.developer.nvidia.com/u/max.v.zaikin)\
**Post date:** [August 22, 2024, 11:29am UTC](https://forums.developer.nvidia.com/t/verify-cudnn-install-failed/167220/10 "2024-08-22T11:29:30Z")

</div>

> [@vetsa.sai](#):
>
> ```auto
> sudo apt-get install g++ freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libglu1-mesa libglu1-mesa-dev
> sudo apt-get install libfreeimage3 libfreeimage-dev
> 
> ```

Awesome! Thx, works for me as well
