-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5462523
commit e0caf51
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
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 |