text: Unable to compile torchtext v0.13

🐛 Bug

Seeing the following error while building torchtext:

-- Found CUDA: /usr/local/cuda (found version "11.4")
-- The CUDA compiler identification is unknown
-- Detecting CUDA compiler ABI info
CMake Error in <myhome>/work/build/temp.linux-ppc64le-3.9/CMakeFiles/CMakeTmp/CMakeLists.txt:
  CUDA_ARCHITECTURES is empty for target "cmTC_94ffb".


CMake Error in <myhome>/work/build/temp.linux-ppc64le-3.9/CMakeFiles/CMakeTmp/CMakeLists.txt:
  CUDA_ARCHITECTURES is empty for target "cmTC_94ffb".


CMake Error at <myhome>/_build_env/share/cmake-3.19/Modules/CMakeDetermineCompilerABI.cmake:48 (try_compile):
  Failed to generate test project build system.

To Reproduce :

Build torchtext tag https://github.com/pytorch/text/releases/tag/v0.13.0-rc2

Expected behavior . It should build successfully.

Environment

OS: Red Hat Enterprise Linux 8.5 (Ootpa) (ppc64le) GCC version: Anaconda GCC 11.2 Python version: 3.9.12 (main, Apr 5 2022, 07:09:29) CUDA runtime version: 11.4.152


About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 20 (9 by maintainers)

Most upvoted comments

I think PyTorch plans to do minor release 1.12.1 due to https://github.com/pytorch/pytorch/issues/80569. So I think we can include #1814 in torchtext 0.13.1 release.

@Nayef211, I have verified with #1814 on my environment and it works. Thanks for adding the fix.