Skip to content

Commit

Permalink
attempt fix
Browse files Browse the repository at this point in the history
Signed-off-by: Sarnie, Nick <[email protected]>
  • Loading branch information
sarnex committed Jan 16, 2025
1 parent d057e2d commit fe4fd64
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 20 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/sycl-linux-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,6 @@ jobs:
build:
name: Build + LIT
runs-on: [Linux, build]
defaults:
run:
shell: bash
container:
image: ${{ inputs.build_image }}
options: -u 1001:1001
Expand Down Expand Up @@ -182,9 +179,6 @@ jobs:
- name: check-llvm
if: always() && !cancelled() && contains(inputs.changes, 'llvm')
run: |
if [[ ${{ inputs.cc }} == 'icx' ]] || [[ ${{ inputs.cxx }} == 'icpx' ]]; then
export LIT_FILTER="SYCL"
fi
cmake --build $GITHUB_WORKSPACE/build --target check-llvm
- name: check-clang
if: always() && !cancelled() && contains(inputs.changes, 'clang')
Expand All @@ -197,9 +191,6 @@ jobs:
run: |
# TODO consider moving this to Dockerfile.
export LD_LIBRARY_PATH=/usr/local/cuda/compat/:/usr/local/cuda/lib64:$LD_LIBRARY_PATH
if [[ ${{ inputs.cc }} == 'icx' ]] || [[ ${{ inputs.cxx }} == 'icpx' ]]; then
export LIT_XFAIL="regression/host_tanpi_double_accuracy.cpp"
fi
cmake --build $GITHUB_WORKSPACE/build --target check-sycl
- name: check-sycl-unittests
if: always() && !cancelled() && contains(inputs.changes, 'sycl')
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/sycl-linux-run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ on:
reset_intel_gpu:
type: string
required: False
is_icx:
use_oneapi:
type: string
default: 'false'
install_igc_driver:
Expand Down Expand Up @@ -246,12 +246,8 @@ jobs:
# If libllvm14 is already installed (dev igc docker), still return true.
sudo apt-get install -yqq libllvm14 || true;
fi
sudo -E bash devops/scripts/install_drivers.sh llvm/devops/dependencies.json ${{ inputs.install_dev_igc_driver == 'true' && 'llvm/devops/dependencies-igc-dev.json --use-dev-igc' || '' }} --all
- name: Setup oneAPI env
if: ${{ inputs.is_icx == 'true' }}
uses: ./devops/actions/setup_linux_oneapi_env
sudo -E bash devops/scripts/install_drivers.sh llvm/devops/dependencies.json ${{ inputs.install_dev_igc_driver == 'true' && 'llvm/devops/dependencies-igc-dev.json --use-dev-igc' || '' }} --all
- name: Source OneAPI TBB vars.sh
if: ${{ inputs.is_icx == 'false' }}
shell: bash
run: |
# https://github.com/actions/runner/issues/1964 prevents us from using
Expand Down Expand Up @@ -355,7 +351,7 @@ jobs:
run: |
# When building with oneAPI, the oneAPI libsycl is found before the newly compiled one and the search order
# can't be changed by environment variables, so just rename it temporarily.
if [ ${{ inputs.is_icx }} == 'true' ]; then
if [ ${{ inputs.use_oneapi }} == 'true' ]; then
sudo mv /opt/intel/oneapi/compiler/2025.0/lib/libsycl.so /opt/intel/oneapi/compiler/2025.0/lib/libsycl.so.bak
fi
ninja -C build-e2e check-sycl-e2e > e2e.log 2>&1
Expand All @@ -364,7 +360,7 @@ jobs:
if [ $exit_code -ne 0 ]; then
awk '/^Failed Tests|Unexpectedly Passed Tests|Unresolved tests|Testing Time/{flag=1}/FAILED: CMakeFiles/{flag=0}flag' e2e.log >> $GITHUB_STEP_SUMMARY
fi
if [ ${{ inputs.is_icx }} == 'true' ]; then
if [ ${{ inputs.use_oneapi }} == 'true' ]; then
sudo mv /opt/intel/oneapi/compiler/2025.0/lib/libsycl.so.bak /opt/intel/oneapi/compiler/2025.0/lib/libsycl.so
fi
exit $exit_code
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sycl-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
build_cache_root: "/__w/"
build_cache_suffix: oneapi
build_artifact_suffix: oneapi
build_configure_extra_args: '--hip --cuda --native_cpu --cmake-opt=-DCOMPILER_RT_BUILD_SANITIZERS=Off --cmake-opt=-DCOMPILER_RT_BUILD_MEMPROF=Off'
build_configure_extra_args: --cmake-opt=-DCMAKE_C_FLAGS="-no-intel-lib -ffp-model-precise" --cmake-opt=-DCMAKE_CXX_FLAGS="-no-intel-lib -ffp-model=precise" --cmake-opt=-DCOMPILER_RT_BUILD_SANITIZERS=Off --cmake-opt=-DCOMPILER_RT_BUILD_MEMPROF=Off
cc: icx
cxx: icpx

Expand Down Expand Up @@ -124,7 +124,7 @@ jobs:
with:
name: Intel PVC L0 oneAPI
runner: '["Linux", "pvc"]'
is_icx: true
use_oneapi: true
target_devices: level_zero:gpu
extra_lit_opts: -j 50
image: ghcr.io/intel/llvm/ubuntu2404_intel_drivers:latest
Expand Down
2 changes: 1 addition & 1 deletion devops/actions/setup_linux_oneapi_env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ runs:
changed_envvars=$(comm -13 <(echo "$env_before") <(echo "$env_after"))
while IFS= read -r line; do
echo "$line" >> $GITHUB_ENV
done <<< "$changed_envvars"
done <<< "$changed_envvars"

0 comments on commit fe4fd64

Please sign in to comment.