首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >生成warp-ctc pytorch时收到make错误

生成warp-ctc pytorch时收到make错误
EN

Stack Overflow用户
提问于 2020-07-17 02:34:23
回答 1查看 271关注 0票数 1

我试图在谷歌Colab上构建https://github.com/SeanNaren/warp-ctc.git,遵循this notebook。我在Colab上使用以下命令:

代码语言:javascript
复制
!git clone https://github.com/SeanNaren/warp-ctc.git;\
cd warp-ctc;\
mkdir build;\
cd build;\
cmake ..;\
make;

但我在构建它时收到一个错误:

代码语言:javascript
复制
[-11%] Building NVCC (Device) object CMakeFiles/warpctc.dir/src/warpctc_generated_ctc_entrypoint.cu.o
/content/drive/My Drive/simple_hwr/warp-ctc/src/ctc_entrypoint.cu(1): error: this declaration has no storage class or type specifier

/content/drive/My Drive/simple_hwr/warp-ctc/src/ctc_entrypoint.cu(1): error: expected a ";"

2 errors detected in the compilation of "/tmp/tmpxft_00000191_00000000-13_ctc_entrypoint.compute_70.cpp1.ii".
CMake Error at warpctc_generated_ctc_entrypoint.cu.o.cmake:279 (message):
  Error generating file /content/drive/My
  Drive/simple_hwr/warp-ctc/build/CMakeFiles/warpctc.dir/src/./warpctc_generated_ctc_entrypoint.cu.o


CMakeFiles/warpctc.dir/build.make:220: recipe for target 'CMakeFiles/warpctc.dir/src/warpctc_generated_ctc_entrypoint.cu.o' failed
make[2]: *** [CMakeFiles/warpctc.dir/src/warpctc_generated_ctc_entrypoint.cu.o] Error 1
CMakeFiles/Makefile2:146: recipe for target 'CMakeFiles/warpctc.dir/all' failed
make[1]: *** [CMakeFiles/warpctc.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

如何解决这个问题?

EN

回答 1

Stack Overflow用户

发布于 2020-07-17 03:06:22

post记录了对此问题的明显修复,该问题也会影响原始warp-ctc存储库:

...ctc_entrypoint.cu文件必须是符号链接。因此,转到src dir并运行:

rm ctc_entrypoint.cu ln -s ctc_entrypoint.cpp ctc_entrypoint.cu

然后,重新运行make,这应该可以解决问题。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/62941402

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档