Skip to content

Commit

Permalink
Update intel_openxla_ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wendyliu235 authored Dec 20, 2023
1 parent a15838f commit a1710b6
Showing 1 changed file with 51 additions and 51 deletions.
102 changes: 51 additions & 51 deletions .github/workflows/intel_openxla_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,58 +17,58 @@ jobs:
- name: Check out repository code
uses: actions/checkout@v3

# - name: Prepare Conda Environment
# run: |
# set +e
# CONDA_ENV=openxla_preCI_${{ github.event.pull_request.number }}_${{ runner.name }}
# source /opt/miniconda/bin/activate ${CONDA_ENV}
# if [ $? -ne 0 ]; then
# echo 'conda env does not exist'
# conda create -n ${CONDA_ENV} python=3.10 -y
# conda activate ${CONDA_ENV}
# fi
# pip install jax==0.4.20 jaxlib==0.4.20
# pip install numpy
# conda install libstdcxx-ng==12.2.0 -c conda-forge
# pip install absl-py
# pip list | grep numpy
# pip list | grep jax
- name: Prepare Conda Environment
run: |
set +e
CONDA_ENV=openxla_preCI_${{ github.event.pull_request.number }}_${{ runner.name }}
source /opt/miniconda/bin/activate ${CONDA_ENV}
if [ $? -ne 0 ]; then
echo 'conda env does not exist'
conda create -n ${CONDA_ENV} python=3.10 -y
conda activate ${CONDA_ENV}
fi
pip install jax==0.4.20 jaxlib==0.4.20
pip install numpy
conda install libstdcxx-ng==12.2.0 -c conda-forge
pip install absl-py
pip list | grep numpy
pip list | grep jax
# - name: Build openXLA
# run: |
# set +e
# CONDA_ENV=openxla_preCI_${{ github.event.pull_request.number }}_${{ runner.name }}
# source /opt/miniconda/bin/activate ${CONDA_ENV}
# which bazel
# if [ $? -eq 1 ]; then
# wget https://github.com/bazelbuild/bazel/releases/download/5.3.0/bazel-5.3.0-installer-linux-x86_64.sh
# bash bazel-5.3.0-installer-linux-x86_64.sh --user
# fi
# export PATH=$PATH:/home/sdp/bin
# source /home/sdp/.bazel/bin/bazel-complete.bash
# bazel --version
# pip list | grep numpy
# pip install numpy
# basekit_path=/home/sdp
# complier_path=${basekit_path}/intel/oneapi/compiler/latest
# mkl_path=${basekit_path}/intel/oneapi/mkl/latest
# cp /home/sdp/openXLA_demoxla_auto_configure_mkl.exp .
# ls
# python --version
# chmod +x ./openXLA_demoxla_auto_configure_mkl.exp
# ./openXLA_demoxla_auto_configure_mkl.exp $complier_path $mkl_path
# bazel clean --expunge --async
# bazel build //xla/tools/pip_package:build_pip_package
# ./bazel-bin/xla/tools/pip_package/build_pip_package ./
# build_result=${PIPESTATUS[0]}
# echo $build_result
# if [ "$build_result" = "0" ];then
# echo "Build successful"
# pip install *.whl
# else
# echo "Build Failed"
# exit 1
# fi
- name: Build openXLA
run: |
set +e
CONDA_ENV=openxla_preCI_${{ github.event.pull_request.number }}_${{ runner.name }}
source /opt/miniconda/bin/activate ${CONDA_ENV}
which bazel
if [ $? -eq 1 ]; then
wget https://github.com/bazelbuild/bazel/releases/download/5.3.0/bazel-5.3.0-installer-linux-x86_64.sh
bash bazel-5.3.0-installer-linux-x86_64.sh --user
fi
export PATH=$PATH:/home/sdp/bin
source /home/sdp/.bazel/bin/bazel-complete.bash
bazel --version
pip list | grep numpy
pip install numpy
basekit_path=/home/sdp
complier_path=${basekit_path}/intel/oneapi/compiler/latest
mkl_path=${basekit_path}/intel/oneapi/mkl/latest
cp /home/sdp/openXLA_demoxla_auto_configure_mkl.exp .
ls
python --version
chmod +x ./openXLA_demoxla_auto_configure_mkl.exp
./openXLA_demoxla_auto_configure_mkl.exp $complier_path $mkl_path
bazel clean --expunge --async
bazel build //xla/tools/pip_package:build_pip_package
./bazel-bin/xla/tools/pip_package/build_pip_package ./
build_result=${PIPESTATUS[0]}
echo $build_result
if [ "$build_result" = "0" ];then
echo "Build successful"
pip install *.whl
else
echo "Build Failed"
exit 1
fi
- name: UT testing
run: |
Expand Down

0 comments on commit a1710b6

Please sign in to comment.