问题描述

cmake配置libtorch1.8.1+cu111报错Failed to compute shorthash for libnvrtc.so
在这里插入图片描述

问题原因

追踪错误代码发现在cuda.make里面调用了python命令
在这里插入图片描述

解决方案

在CMakeList.txt开头添加find_package(PythonInterp REQUIRED)
在这里插入图片描述

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐