在安装TVM时,进行到 $ cmake.. 步骤时,出现报错,做个笔记记录一下:
Cmake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in th CMake files: CUDA_CUDNN_LIBRARY
inked by target “tvm” in directory /home/tvm
linked by target “tvm_runtime” in directory /home/tvm
原本的步骤是修改“set(USE_CUDA OFF)”为“set(USE_CUDA ON)”;
修改config.cmake文件中的
“set(USE_CUDA OFF)”
为
“set(USE_CUDA /path/to/cuda)”
该路径是之前安装cuda的路径,我是在/usr/local/cuda-11.8
问题原因是找不到正确的CUDA_CUDNN_LIBRARY的路径。