forked from codeplaysoftware/oneapi-construction-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added simple host build of UnitCL with sccache
- Loading branch information
Showing
3 changed files
with
117 additions
and
1 deletion.
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,60 @@ | ||
name: build-ock | ||
description: Action to build the oneapi-construction-kit but not run | ||
|
||
inputs: | ||
build_type: | ||
description: 'build type (Release, ReleaseAssert)' | ||
default: ReleaseAssert | ||
mux_target: | ||
description: 'TBD' | ||
default: "host" | ||
usm: | ||
description: 'TBD' | ||
default: ON | ||
command_buffer: | ||
description: 'TBD' | ||
default: ON | ||
host_fp16: | ||
description: 'TBD' | ||
default: OFF | ||
images: | ||
description: 'TBD' | ||
default: OFF | ||
debug_support: | ||
description: 'TBD' | ||
default: OFF | ||
offline_kernel_tests: | ||
description: 'TBD' | ||
default: ON | ||
llvm_install_dir: | ||
description: 'TBD' | ||
default: llvm_install | ||
runs: | ||
# We don't want a new docker just a list of steps, so mark as composite | ||
using: "composite" | ||
steps: | ||
- name: cmake_ca | ||
run: | ||
cmake -GNinja | ||
-Bbuild | ||
-DCMAKE_C_COMPILER_LAUNCHER=sccache | ||
-D CMAKE_CXX_COMPILER_LAUNCHER=sccache | ||
-DCA_MUX_TARGETS_TO_ENABLE="host" | ||
-DCA_ENABLE_API=cl | ||
-DCA_LLVM_INSTALL_DIR=${{inputs.llvm_install_dir} | ||
-DCA_ENABLE_DEBUG_SUPPORT=${{inputs.debug_support}} | ||
-DCMAKE_BUILD_TYPE=${{ inputs.build_type }} | ||
-DCA_ENABLE_HOST_IMAGE_SUPPORT=OFF | ||
-DCA_HOST_ENABLE_BUILTIN_KERNEL=${{inputs.debug_support}} | ||
-DCA_HOST_ENABLE_BUILTINS_EXTENSION=ON | ||
-DCA_HOST_ENABLE_FP16=${{inputs.host_fp16}} | ||
-DCA_CL_ENABLE_OFFLINE_KERNEL_TESTS=${{inputs.offline_kernel_tests}} | ||
-DCA_ASSEMBLE_SPIRV_LL_LIT_TESTS_OFFLINE=OFF | ||
-DOCL_EXTENSION_cl_intel_unified_shared_memory=${{inputs.usm}} | ||
-DOCL_EXTENSION_cl_khr_command_buffer=${{inputs.command_buffer}} | ||
-DOCL_EXTENSION_cl_khr_command_buffer_mutable_dispatch=${{inputs.command_buffer}} | ||
-DCA_CL_ENABLE_ICD_LOADER=ON . | ||
- name: build_ock | ||
run: | ||
ninja -C build oclc UnitCL UnitCargo UnitMux UnitCompiler UnitMD FuzzCL | ||
clVectorAddition veczc |
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
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,55 @@ | ||
# Simple workflow for running merge request tests | ||
name: Merge Request tester | ||
|
||
on: | ||
# temporary | ||
push: | ||
|
||
pull_request: | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build_ca_host_x86_64: | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
|
||
- name: Install prerequisites | ||
run: | | ||
sudo apt-get install -y spirv-tools | ||
pip install lit | ||
- name: Install Ninja | ||
uses: llvm/actions/install-ninja@main | ||
|
||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: codeplaysoftware/oneapi-construction-kit | ||
|
||
- name: Setup ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
max-size: 50M | ||
key: sccache-build_ca_host_x86_64 | ||
variant: sccache | ||
|
||
- name: load llvm | ||
uses: actions/cache/restore@v3 | ||
with: | ||
path: llvm_install/** | ||
key: llvm-ubuntu-22.04-v16-RelAssert | ||
fail-on-cache-miss: true | ||
|
||
- name: build_x86-llvm15-cl3.0-release | ||
uses: ./.github/actions | ||
with: | ||
build_type: Release | ||
mux_target: host | ||
|
||
- name: build_ca | ||
run: | ||
ninja -C build oclc UnitCL UnitCargo UnitMux UnitCompiler UnitMD FuzzCL | ||
clVectorAddition veczc |