Skip to content

Added build script for torchaudio 2.11 & 2.10 - #8542

Open
bhagyashrigai wants to merge 4 commits into
ppc64le:masterfrom
bhagyashrigai:pr-torchaudio
Open

Added build script for torchaudio 2.11 & 2.10#8542
bhagyashrigai wants to merge 4 commits into
ppc64le:masterfrom
bhagyashrigai:pr-torchaudio

Conversation

@bhagyashrigai

Copy link
Copy Markdown
Contributor

Checklist

  • Have you checked and followed all the points mention in the CONTRIBUTING.MD
  • Have you validated script on UBI 9 container
  • Did you run the script(s) on fresh container with set -e option enabled and observe success ?
  • Did you have Legal approvals for patch files ?

@bhagyashrigai bhagyashrigai changed the title Added build script for torchaudio latest version Added build script for torchaudio 2.11 & 2.10 Aug 4, 2026
@bhagyashrigai

Copy link
Copy Markdown
Contributor Author

Hi @cdeepali
Could you please review this PR

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"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LIBPROTO_INSTALL used before being set.

export USE_CUDA=0
export USE_CUDNN=0
export USE_TENSORRT=0
export Protobuf_INCLUDE_DIR=${LIBPROTO_INSTALL}/include

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LIBPROTO_INSTALL used before being set.


#basic import test
export LD_LIBRARY_PATH="/OpenBLAS/:${LD_LIBRARY_PATH}"
if ! (python3.12 -m build --wheel --no-isolation --outdir="$SCRIPT_DIR/"); then

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The build step is repeated here, wheel is also built at Ln 211.

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MAX_JOBS is not assigned here.

echo "------------ libprotobuf,protobuf installed--------------"

echo "----Installing rust------"
curl https://sh.rustup.rs -sSf | sh -s -- -y

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v1.92.0 is available on dnf. Is version newer than 1.92 needed for the build?

cdeepali
cdeepali previously approved these changes Aug 5, 2026
@cdeepali
cdeepali dismissed their stale review August 5, 2026 08:22

Mistakenly approved

@cdeepali

cdeepali commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Copied this PR into #8563 and the checks have passed, so merging it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants