Cmake &引用;生成文件时出错";在凸耳座中安装切口时

Cmake &引用;生成文件时出错";在凸耳座中安装切口时,cmake,Cmake,在Luarock中安装cutorch时,出现以下错误: CMake Error at THC_generated_THCTensorIndex.cu.o.Release.cmake:280 (message): Error generating file /tmp/luarocks_cutorch-scm-1-2888/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorIndex.cu.o 我的操作

在Luarock中安装cutorch时,出现以下错误:

CMake Error at THC_generated_THCTensorIndex.cu.o.Release.cmake:280 (message):
   Error generating file
   /tmp/luarocks_cutorch-scm-1-2888/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorIndex.cu.o
我的操作系统是Ubuntu18.04。我也尝试过使用Ubuntu 20.04。这次我使用CUDA toolkit 10.1更新2,我的CUDnn使用的是V7.6.5。 我的gcc版本是7.5.0

我在网页上用过这个方法


我不知道该怎么办。

您是否检查过其他带有类似错误表的问题?例如:那个:@Tsyvarev我尝试了你的链接,但它也显示了“从现在开始,我的gcc版本是7.5.0,在THC_生成的_THCTensorIndex.cu.o.Release.CMake:280(消息):生成文件时出错”。仍然无法建立。