Unable to compile torchtext v0.13
See original GitHub issue🐛 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
Issue Analytics
- State:
- Created a year ago
- Comments:20 (9 by maintainers)
Top Results From Across the Web
Publish torchtext 0.9.2 on PyPi · Issue #1397 · pytorch/text
It is not a bug per se, but it would be nice if torchtext 0.9.2 could be added to the releases, since at...
Read more >torchtext
torchtext. This repository consists of: torchtext.datasets: The raw text iterators for common NLP datasets. torchtext.data: Some basic NLP building blocks.
Read more >python - How can I install torchtext?
As stated in the PyTorch forum, simply do: $ pip install https://github.com/pytorch/text/archive/master.zip. That should do it.
Read more >Torchtext 0.13.0 documentation
This library is part of the PyTorch project. PyTorch is an open source machine learning framework. Features described in this documentation are classified...
Read more >torchtext.legacy not found - You.com | The AI Search ...
How to solve the no module named torchtext.legacy Error Solution 1: Install the torchtext module Solution 2: Install pytorch again Solution 3: Add...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub 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.