Skip to content

Commit

Permalink
add Sycl build
Browse files Browse the repository at this point in the history
  • Loading branch information
wendyliu235 committed Apr 25, 2024
1 parent 5462523 commit e0caf51
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/IDC_1100_Public_Sycl_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Public Sycl build
run-name: Sync build is testing out GitHub Action
on:
push:
branches:
- wenjun/build_check
# workflow_dispatch:
# inputs:
# jax_commit:
# description: 'Specify the commit hash'
# default: 'master'

jobs:
Sync-Build-CI:
runs-on: Intel_openxla
steps:
- name: Check out repository code
uses: actions/checkout@v3

- name: Prepare Conda Environment
run: |
set +e
CONDA_ENV=Sync_build_nightly_${{ runner.name }}
source /opt/conda/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 numpy
- name: Sync Build
run: |
set +e
CONDA_ENV=Sync_build_nightly_${{ runner.name }}
source /opt/conda/bin/activate ${CONDA_ENV}
#build
export SYCL_TOOLKIT_PATH=/home/sdp/intel/oneapi/compiler/2024.1
export workspace=./
xla_path=$workspace/xla
cd $workspace
git clone -b guizili/build https://github.com/Intel-tensorflow/xla xla
bash $xla_path/tools/ci_build/sycl_build/build_sycl.sh $workspace |& tee $workspace/build.log
build_result=${PIPESTATUS[0]}
echo $build_result
if [ "$build_result" = "0" ];then
echo "Build successful"
else
echo "Build Failed"
exit 1
fi

0 comments on commit e0caf51

Please sign in to comment.