Skip to content
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

Currency:Updated build-script for jax #5368

Merged
merged 3 commits into from
Feb 10, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 8 additions & 15 deletions j/jax/jax_ubi_9.3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
PACKAGE_NAME=jax
PACKAGE_VERSION=${1:-jax-v0.4.7}
PACKAGE_URL=https://github.com/jax-ml/jax

PACKAGE_DIR=./jax

OS_NAME=$(grep ^PRETTY_NAME /etc/os-release | cut -d= -f2)

Expand All @@ -39,11 +39,10 @@ export EXTRA_BAZEL_ARGS="--host_javabase=@local_jdk//:jdk" bash
./compile.sh
#export the path of bazel bin
export PATH=/bazel-6.5.0/output/:$PATH
cd /
cd ..

pip install numpy==1.26.4 scipy opt-einsum==3.3.0 ml-dtypes==0.5.0 absl-py wheel


git clone $PACKAGE_URL
cd $PACKAGE_NAME
git checkout $PACKAGE_VERSION
Expand All @@ -52,19 +51,13 @@ if ! python setup.py install ; then
echo "------------------$PACKAGE_NAME:Install_fails-------------------------------------"
echo "$PACKAGE_VERSION $PACKAGE_NAME"
echo "$PACKAGE_NAME | $PACKAGE_VERSION | $OS_NAME | GitHub | Fail | Install_Fails"
exit 1
fi

if ! python setup.py bdist_wheel ; then
echo "------------------$PACKAGE_NAME:wheel_built_fails---------------------"
echo "$PACKAGE_VERSION $PACKAGE_NAME"
echo "$PACKAGE_NAME | $PACKAGE_VERSION | $OS_NAME | GitHub | Fail | wheel_built_fails"
exit 2
exit 1
else
echo "------------------$PACKAGE_NAME:wheel_built_success-------------------------"
echo "------------------$PACKAGE_NAME:Installsuccess-------------------------"
echo "$PACKAGE_VERSION $PACKAGE_NAME"
echo "$PACKAGE_NAME | $PACKAGE_VERSION | $OS_NAME | GitHub | Pass | Wheel_built_success"
exit 0
echo "$PACKAGE_NAME | $PACKAGE_VERSION | $OS_NAME | GitHub | Pass | Install_success"
exit 0
fi

#skipping tests as it requires tensorflow dependency.

#skipping tests as it requires tensorflow dependency.