Skip to content

Commit

Permalink
[SYCL][NATIVECPU][CI] Enable Native CPU without OCK on linux build (#…
Browse files Browse the repository at this point in the history
…13052)

This PR enables the Native CPU plugin in the build jobs for Linux. It is
the first PR in series, with the goal of enabling full `e2e` testing for
the Native CPU plugin on both Linux and Windows.

This initial PR builds the Native CPU plugin without the oneAPI
Construction Kit. While the oneAPI Construction Kit is currently a key
component for Native CPU, I would prefer to keep things as simple as
possible, and enable CI testing for additional features incrementally,
in order to gradually assess the impact of the Native CPU plugin in the
overall CI workflow.
  • Loading branch information
PietroGhg authored May 8, 2024
1 parent 23c3456 commit 4c53706
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/sycl-linux-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ on:
build_configure_extra_args:
type: string
required: false
default: "--hip --cuda"
default: "--hip --cuda --native_cpu"
build_artifact_suffix:
type: string
required: true
Expand Down Expand Up @@ -82,7 +82,7 @@ on:
build_configure_extra_args:
type: choice
options:
- "--hip --cuda"
- "--hip --cuda --native_cpu"
# Cache properties need to match CC/CXX/CMake opts. Any additional choices
# would need extra care.
build_cache_root:
Expand Down Expand Up @@ -168,6 +168,7 @@ jobs:
--cmake-opt=-DCMAKE_C_COMPILER_LAUNCHER=ccache \
--cmake-opt=-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
--cmake-opt="-DLLVM_INSTALL_UTILS=ON" \
--cmake-opt="-DNATIVECPU_USE_OCK=Off" \
--cmake-opt="-DSYCL_PI_TESTS=OFF"
- name: Compile
id: build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sycl-post-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
build_cache_root: "/__w/llvm"
build_cache_suffix: sprod_shared
build_artifact_suffix: sprod_shared
build_configure_extra_args: --shared-libs --no-assertions --hip --cuda --cmake-opt="-DSYCL_ENABLE_STACK_PRINTING=ON" --cmake-opt="-DSYCL_LIB_WITH_DEBUG_SYMBOL=ON"
build_configure_extra_args: --shared-libs --no-assertions --hip --cuda --native_cpu --cmake-opt="-DSYCL_ENABLE_STACK_PRINTING=ON" --cmake-opt="-DSYCL_LIB_WITH_DEBUG_SYMBOL=ON"
# Docker image has last nightly pre-installed and added to the PATH
build_image: "ghcr.io/intel/llvm/sycl_ubuntu2204_nightly:build"
cc: clang
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// XFAIL: native_cpu
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

Expand Down

0 comments on commit 4c53706

Please sign in to comment.