Skip to content

Commit

Permalink
TBD
Browse files Browse the repository at this point in the history
  • Loading branch information
coldav committed Jun 28, 2023
1 parent 1a3286f commit 455ce93
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 53 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ inputs:
default: ${{ github.workspace }}/llvm_install
build_targets:
description: 'TBD'
default: UnitCL muxc veczc
default: UnitCL muxc veczc clc
host_fp16:
description: 'TBD'
default: OFF
Expand Down Expand Up @@ -61,9 +61,9 @@ inputs:
description: "TBD"
default: cl
enable_rvv_scalable_vecz_check:
default: ON
enable_rvv_scalable_vp_vecz_check:
default: ON
default: OFF
enable_rvv_scalable_VP_vecz_check:
default: OFF

runs:
# We don't want a new docker just a list of steps, so mark as composite
Expand Down Expand Up @@ -96,14 +96,11 @@ runs:
-DHAL_REFSI_SOC=${{ inputs.hal_refsi_soc }}
-DHAL_REFSI_THREAD_MODE=${{ inputs.regs_thread_mode }}
-DCA_RISCV_ENABLED=${{ inputs.riscv_enabled }}
-DCA_CL_ENABLE_RVV_SCALABLE_VECZ_CHECK=${{ inputs.enable_rvv_scalable_vecz_check }}
-DCA_CL_ENABLE_RVV_SCALABLE_VECZ_CHECK=${{ inputs.enable_rvv_scalable_vecz_check }}
-DCA_CL_ENABLE_RVV_SCALABLE_VP_VECZ_CHECK=${{ inputs.enable_rvv_scalable_vp_vecz_check }}
${{ inputs.extra_flags }}
.
- name: build_ock
shell: bash
run:
ninja -C ${{ inputs.build_dir }} ${{ inputs.build_targets }}

# -DCA_CL_ENABLE_RVV_SCALABLE_VECZ_CHECK=ON
# -DCA_CL_ENABLE_RVV_SCALABLE_VP_VECZ_CHECK=ON
22 changes: 22 additions & 0 deletions .github/actions/do_build_ock/do_build_m1/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: build-ock-m1
description: Action to build the oneapi-construction-kit for default riscv m1 target

inputs:
build_type:
description: 'build type (Release, ReleaseAssert)'
default: ReleaseAssert

runs:
# We don't want a new docker just a list of steps, so mark as composite
using: "composite"
steps:
- name: build_ock
uses: ./.github/actions/build_ock
with:
build_type: ${{ inputs.build_type }}
mux_targets_enable: riscv
mux_compilers_enable: refsi_m1
external_compiler_dirs: "${{ github.workspace }}/examples/refsi/refsi_m1/compiler/refsi_m1"
riscv_enabled: ON
enable_rvv_scalable_vecz_check: ON
enable_rvv_scalable_VP_vecz_check: ON
33 changes: 33 additions & 0 deletions .github/actions/setup_ubuntu_build/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: setup-ubuntu-build
description: Setup ubuntu ready for building. Does not include cache which is separate

inputs:
build_type:
description: 'build type (Release, RelAssert)'
default: RelAssert
llvm_version:
description: 'TBD'
default: 16
ubuntu_version:
description: 'TBD'
default: 22.04


runs:
# We don't want a new docker just a list of steps, so mark as composite
using: "composite"
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: load llvm
uses: actions/cache/restore@v3
with:
path: llvm_install/**
key: llvm-ubuntu-${{ inputs.ubuntu_version }}-v${{ inputs.llvm_version}}-${{ inputs.build_type }}
fail-on-cache-miss: true
52 changes: 7 additions & 45 deletions .github/workflows/merge_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,72 +15,34 @@ jobs:
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: load llvm
uses: actions/cache/restore@v3
with:
path: llvm_install/**
key: llvm-ubuntu-22.04-v16-RelAssert
fail-on-cache-miss: true

- name: setup-ubuntu
uses: ./.github/actions/setup_ubuntu_build

- name: Setup ccache
uses: hendrikmuhs/[email protected]
with:
max-size: 50M
max-size: 100M
key: sccache-build
variant: sccache

- name: build_mr_x86-llvm15-cl3.0-release
- name: build_mr_x86-cl3.0-release
uses: ./.github/actions/build_ock
with:
build_type: Release
mux_targets_enable: host

- name: build_mr_x86-offline
uses: ./.github/actions/build_ock
with:
build_type: Release
mux_targets_enable: host
extra_flags: -DCA_RUNTIME_COMPILER_ENABLED=OFF -DCA_EXTERNAL_CLC=${{ github.workspace }}/build/bin/clc
build_dir: build_offline
build_targets: UnitCL

# - python -u scripts/build.py -GNinja --verbose --clean
# --build_type $BuildType --arch $Arch --compiler $Compiler
# --binary_dir build_offline --target check-ComputeAorta
# --offline_only --external_clc $CI_PROJECT_DIR/oneapi-construction-kit/build/bin/clc
# -DCA_CL_ENABLE_ICD_LOADER=ON
# -DCA_ENABLE_HOST_IMAGE_SUPPORT=$Images
# -DCA_HOST_ENABLE_FP16=$FP16
# -DOCL_EXTENSION_cl_khr_command_buffer=$CommandBuffer
# -DOCL_EXTENSION_cl_khr_command_buffer_mutable_dispatch=$CommandBuffer
# -DCA_USE_LINKER=gold

# - name: build_mr-ubuntu-gcc-x86_64-riscv-3.0_m1
# uses: ./.github/actions/build_ock
# with:
# # Default SOC M1, external compiler dir, hal_description RV64GCV, thread mode WG
# build_type: ReleaseAssert
# mux_targets_enable: riscv
# mux_compilers_enable: refsi_m1
# external_compiler_dirs: "${{ github.workspace }}/examples/refsi/refsi_m1/compiler/refsi_m1"
# riscv_enabled: ON
# extra_flags: -DCA_CL_ENABLE_RVV_SCALABLE_VECZ_CHECK=ON -DCA_CL_ENABLE_RVV_SCALABLE_VP_VECZ_CHECK=ON


- name: build_mr-ubuntu-gcc-x86_64-riscv-3.0_m1
uses: ./.github/actions/build_ock/build_m1

- name: run_it_for_demo
run:
Expand Down

0 comments on commit 455ce93

Please sign in to comment.