Added build script for torchaudio 2.11 & 2.10 - #8542
Open
bhagyashrigai wants to merge 4 commits into
Open
Conversation
Fixed issues for 2.11 and 2.10
Contributor
Author
|
Hi @cdeepali |
cdeepali
reviewed
Aug 5, 2026
| export CPU_COUNT=$(nproc --all) | ||
| export CXXFLAGS="${CXXFLAGS} -D__STDC_FORMAT_MACROS" | ||
| export LDFLAGS="$(echo ${LDFLAGS} | sed -e 's/-Wl\,--as-needed//')" | ||
| export LDFLAGS="${LDFLAGS} -Wl,-rpath-link,${LIBPROTO_INSTALL}/lib64 -Wl,-rpath-link,${OpenBLASInstallPATH}/lib" |
Contributor
There was a problem hiding this comment.
LIBPROTO_INSTALL used before being set.
cdeepali
reviewed
Aug 5, 2026
| export USE_CUDA=0 | ||
| export USE_CUDNN=0 | ||
| export USE_TENSORRT=0 | ||
| export Protobuf_INCLUDE_DIR=${LIBPROTO_INSTALL}/include |
Contributor
There was a problem hiding this comment.
LIBPROTO_INSTALL used before being set.
cdeepali
reviewed
Aug 5, 2026
|
|
||
| #basic import test | ||
| export LD_LIBRARY_PATH="/OpenBLAS/:${LD_LIBRARY_PATH}" | ||
| if ! (python3.12 -m build --wheel --no-isolation --outdir="$SCRIPT_DIR/"); then |
Contributor
There was a problem hiding this comment.
The build step is repeated here, wheel is also built at Ln 211.
cdeepali
reviewed
Aug 5, 2026
| git clone https://github.com/OpenMathLib/OpenBLAS | ||
| cd OpenBLAS | ||
| git checkout v0.3.32 | ||
| make -j${MAX_JOBS} TARGET=POWER9 BUILD_BFLOAT16=1 BINARY=64 USE_OPENMP=1 USE_THREAD=1 NUM_THREADS=120 DYNAMIC_ARCH=1 INTERFACE64=0 |
Contributor
There was a problem hiding this comment.
MAX_JOBS is not assigned here.
cdeepali
reviewed
Aug 5, 2026
| echo "------------ libprotobuf,protobuf installed--------------" | ||
|
|
||
| echo "----Installing rust------" | ||
| curl https://sh.rustup.rs -sSf | sh -s -- -y |
Contributor
There was a problem hiding this comment.
v1.92.0 is available on dnf. Is version newer than 1.92 needed for the build?
cdeepali
previously approved these changes
Aug 5, 2026
Fixed script issues
removed commented
4 tasks
Contributor
|
Copied this PR into #8563 and the checks have passed, so merging it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist
set -eoption enabled and observe success ?