Why do cudnn test errors occur after installation?(Operating system -linux)

inu1120 注册会员
2023-02-26 17:24

The following answers are quoted from GPT-3 model, please use them wisely:


2.请检查你的系统是否安装了最新版本的CUDA Development Kit(CUDA SDK)和CUDNN软件库。


nvcc --version
cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2





Please accept my answer if it answers your question

medicmagic 注册会员
2023-02-26 17:24

the reference answer GPT ᴼ ᴾ ᴱ ᴺ ᴬ ᴵ < br / > this error may be because you have not properly initialized cudnn. Before using cudnn, you need to create a cudnn handle using the cudnnCreate function and clean it up after use using the cudnnDestroy function. Make sure you properly initialize and clean up cudnn handles in your test code. Here is a simple sample code snippet:

cudnnHandle_t cudnn;
// 测试代码

If you have properly initialized the cudnn handle, check that you are using the correct version of cudnn and that your code is compatible with the cudnn version. You can also try reinstalling cudnn and recompiling your code.

dellay0210 注册会员
2023-02-26 17:24

This answer refers to GPT and GPT_Pro to better solve the problem.
CUDNN may not work properly due to a problem during the installation. The reasons may be as follows:

  1. The computer does not support CUDNN: For example, the NVIDIA graphics card or CUDA Toolkit is not installed on the computer. As a result, CUDNN cannot work properly.

  2. Computer environment mismatch: For example, an incompatible CUDA Toolkit version or CUDNN version is installed on the computer. As a result, CUDNN cannot work properly.

  3. An error occurs during the CUDNN installation. For example, an exception occurs during the CUDNN installation. CUDNN cannot work properly.

It is recommended that you check whether the graphics card and CUDA Toolkit version of the computer meet the requirements of CUDNN, and then install CUDNN again to ensure that CUDNN can work properly.
If the answer is helpful, please accept it.

About the Author

Question Info

Publish Time
2023-02-26 17:24
Update Time
2023-02-26 17:24