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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building torchaudio 0.7 on ppc64le
#1796
Comments
Thanks for the report. Could you post your conda and PyTorch information here? You can do it by copy and paste the output from environment collection script |
I'm running torch 1.7.1 and python 3.7. I'll post the info from running the script later tonight or tomorrow; I'm just not able to do so now. |
Another thing to note is that I am running on a ppc64le (power 9) machine |
Maybe upgrading torch to 1.9 can solve the problem, but I'm not sure. I will try to reproduce it when you post the environment info. |
From the error message, I think you are building torchaudio from the main branch. This requires the latest PyTorch (nightly or source build). With PyTorch 1.7.1, you need to use the v0.7.2 tag. https://github.com/pytorch/audio/tree/v0.7.2, I am not sure about |
Thanks, will give this a try today! |
Thanks! Building from the above tag instead seemed to fix the error. However, it looks like I am now getting a new error when building from source using
and here is the full error message:
There is a warning saying something about c++ compiler compatibility, could this be relevant here? There is also a message that says that the compute node I'm currently on doesn't see a CUDA path (maybe this is a function of the compute node that I'm currently on; Also, if I run Thanks so much! |
The error indicates that it failed to compile Also since the underlying compile command is shown, can you try running the compile command directly? it's
It is possible, but I expect something strange to happen at link time or run time.
This should not be a problem for building torchaduio, because torchaudio 0.7 does not have any custom CUDA kernel. |
I get a compilation error when I try to run the compile command directly:
This is the command that comes after Could you please specify what you mean by setting Thanks so much! |
Cool, now we are making progress and know what is going on. If your OS has a package manager and if libsox is available, then you can use that. You need to do some equivalent of APT command like Another option, to build sox as a part of Torchaudio, you can set the environment variable
Yes, I meant the environment variable as you did, and since the compilation error was not OOM, indeed this did not help. |
Just ran the setup command with
I assume that this means it doesn't work for |
Yes, this is what I suspected to happen. The source code of libsox is years old, so they do not detect recent CPU architectures well. The same error also happened when we tried building on macOS with M1 chip. One way to resolve the error is to patch the
|
@mthrok bumping this :) |
Hi @j4sonzhao Sorry for the delay. In the PATCH command you added, Can you replace
|
I tried that, and cam across a very similar error (I think the path is just slightly different this time,
To confirm, here is what my 2 project lines look like:
|
Some small detail was changed after 0.7. Can you try this?
I think if you check the content of
|
ppc64le
ppc64le
ppc64le
Thanks! It looks like these
instead of
I'm actually now getting a gcc related error, I think because I am running gcc version that's too high (8.3.1).
Following this post, I tried to see if I could change the makefile inside Help would be appreciated, thanks! |
Hi @j4sonzhao I looked into it and indeed
The patch you linked is already incorporated. You should see the same thing in
Other possibility is environment variables.
Regardless of where the To reset unset
This should apply to the other environment variables listed above. |
Thanks! Changing that configure command worked and it looks like libsox installed successfully. I reran Is this a problem? Additionally, for reference I am posting the 3 stdout outputs I saw when running the command 3 times. Note that the first time, there were 6 commands run (i.e. [1/6] to [6/6]) and the second time there were 4 ([1/4], etc.), and the third time there was only one ([1/1]). First:
Second:
Third:
Help would be appreciated, thanks! |
To provide more information, when I type
torchaudio is a dependency for some repositories that I would like to install, for example this one. However, when I run that repository's installation procedure, which just consists of
which leads me to believe that torchaudio was not installed properly. |
Regarding the build process behavior, this is expected. The build process ( Now about the warning when The version number ( So, can you retry the installation with |
thank you so much! it looks like everything is running smoothly on my end now, and I really appreciate your help walking me through this setup! |
Hi there, I am trying to install torchaudio from source, and I run into the following error:
I think I have protobuf installed because when I run
pip install protobuf
I getI've tried modifying the CMAKE_PREFIX_PATH but I don't really know what I'm doing there, and I'm not sure if that's the right way to go.
Help would be appreciated! I need to install from source since there's no other way I can install on the machine I'm using right now.
The text was updated successfully, but these errors were encountered: