New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to compile torchtext v0.13 #1797
Comments
Hi @cdeepali, torchtext does not depend on CUDA. Is there a reason you are building torchtext with FORCE_CUDA=1? |
Yes thats correct. But my build is failing without it as well, so I had just tried passing FORCE_CUDA=1. But my build fails even if I don't pass it. |
@cdeepali could you please post complete compile log with errors ? |
I am actually trying to build torchtext when CUDA enabled pytorch is installed in the build environment. As a result cmake detects CUDA on its own and eventually fails: full log:
This issue was not seen until v0.12. |
@atalman, I have now found a workaround for this issue. I have commented cmake code to look for torch https://github.com/pytorch/text/blob/v0.13.0-rc2/CMakeLists.txt#L54 and made local changes to link torchtext.so with required torch libraries in my env. However, I would like to understand if we expect successful torchtext build in an environment where cudatoolkit is also installed? As prior to v0.13 this used to work. |
cc: @Nayef211 |
@cdeepali would you mind sharing the code you used to link cc @mthrok do you know if torchaudio users have run into similar issues in the past? |
I think the issue is somehow related to the environment. Searching for the same error, got this SO, |
Although I reported this for ppc as I tried the build first on Power platform the issue is applicable to x86 as well. I observed same error on x86 in a trial I did today:
|
@Nayef211, I used the following patch to link torchtext with the required torch libraries:
Please let me know if you see any issue with this. |
@Nayef211, pls let me know your view on the above patch. |
Hey @cdeepali. Let me create a PR later today incorporating some of your changes! |
Sure @Nayef211. |
@cdeepali quick question, what is the value of your |
I have it set to the following:
and |
torchtext 0.13 also fails to build on rocm, preliminary patch fixes build too. |
does not apply to released version (0.13), need to rebase patch for moved setup_helpers dir, will report once done |
I think PyTorch plans to do minor release 1.12.1 due to pytorch/pytorch#80569. So I think we can include #1814 in torchtext 0.13.1 release. |
馃悰 Bug
Seeing the following error while building torchtext:
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
The text was updated successfully, but these errors were encountered: