Skip to content

Commit daa8a96

Browse files
author
Colin Davidson
committed
Added refsi_tutorial as an internal test
1 parent a60afd7 commit daa8a96

4 files changed

Lines changed: 444 additions & 361 deletions

File tree

.github/actions/do_build_ock/action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ inputs:
110110
toolchain_file:
111111
description: "Path to toolchain file"
112112
default: ""
113+
cmake_path:
114+
description: 'cmake path'
115+
default: '.'
113116

114117
runs:
115118
# We don't want a new docker just a list of steps, so mark as composite
@@ -168,7 +171,7 @@ runs:
168171
-DCA_BUILD_32_BITS=${{ inputs.build_32_bit }}
169172
-DCMAKE_TOOLCHAIN_FILE=${{ inputs.toolchain_file }}
170173
${{ inputs.extra_flags }}
171-
.
174+
${{ inputs.cmake_path }}
172175
- name: build_ock
173176
shell: ${{ inputs.shell_to_use }}
174177
run:
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: build_pr_ubuntu_gcc_x86_64_refsi_tutorial
2+
description: Build pr ubuntu_gcc_x86_64_refsi_tutorial
3+
4+
inputs:
5+
cache_seed:
6+
type: boolean
7+
default: false
8+
9+
runs:
10+
using: "composite"
11+
steps:
12+
# TODO: refsi_tutorial start
13+
- name: remove any old dirs and set up new target
14+
shell: bash
15+
run: |
16+
rm -rf build
17+
git config --global --add safe.directory $GITHUB_WORKSPACE
18+
pip install cookiecutter
19+
scripts/setup_new_target_tutorial.sh -s end -e $GITHUB_WORKSPACE/refsi_tutorial -f "refsi_wrapper_pass;clmul;replace_mem" $PWD
20+
- name: build it
21+
uses: ./.github/actions/do_build_ock
22+
with:
23+
build_targets: install # Build the install target so we don't miss compilation errors
24+
mux_targets_enable: refsi_tutorial
25+
use_linker: gold
26+
debug_support: ON
27+
offline_kernel_tests: OFF
28+
cmake_path: $GITHUB_WORKSPACE/refsi_tutorial
29+
extra_flags: '-DCA_REFSI_TUTORIAL_ENABLED=ON -DCA_EXTERNAL_ONEAPI_CON_KIT_DIR=$GITHUB_WORKSPACE -DCA_EXTERNAL_REFSI_TUTORIAL_HAL_DIR=$GITHUB_WORKSPACE/refsi_tutorial/hal_refsi_tutorial'
30+
31+
32+
- name: run test
33+
if: inputs.cache_seed != 'true'
34+
shell: bash
35+
# Run just a quick UnitCL test for now, hal_tutorial causes some failures at present
36+
run: |
37+
ninja -Cbuild check-ock-refsi_tutorial-lit
38+
OCL_ICD_VENDORS=/dev/null OCL_ICD_FILENAMES=$PWD/build/oneAPIConstructionKit/lib/libCL.so \
39+
$PWD/build/oneAPIConstructionKit/bin/UnitCL \
40+
--gtest_filter=Execution/Execution.Task_01_02_Add/OpenCLC

.github/workflows/pr_tests_cache.yml

Lines changed: 52 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Seed the cache for ock builds
22
on:
3-
# pull_request:
4-
# paths:
5-
# - '.github/workflows/pr_tests_cache.yml'
3+
pull_request:
4+
paths:
5+
- '.github/workflows/pr_tests_cache.yml'
66
push:
77
branch: main
88
paths:
@@ -31,43 +31,43 @@ concurrency:
3131
permissions:
3232
actions: write
3333
jobs:
34-
ubuntu_22_llvm_prev_jobs:
35-
if: github.repository == 'uxlfoundation/oneapi-construction-kit' || github.event_name != 'schedule'
36-
runs-on: ubuntu-22.04
37-
container:
38-
image: ghcr.io/uxlfoundation/ock_ubuntu_22.04-x86-64:latest
39-
volumes:
40-
- ${{github.workspace}}:${{github.workspace}}
41-
steps:
42-
- name: Checkout repo
43-
uses: actions/checkout@v4
44-
45-
- name: setup ubuntu
46-
uses: ./.github/actions/setup_build
47-
with:
48-
llvm_version: ${{ env.llvm_previous }}
49-
llvm_build_type: RelAssert
50-
save: true
51-
llvm_source: install
52-
53-
- name: build host_x86_64
54-
uses: ./.github/actions/do_build_pr/run_host_x86_64
55-
with:
56-
cache_seed: true
57-
58-
- name: build riscv M1
59-
uses: ./.github/actions/do_build_pr/run_riscv_m1
60-
with:
61-
cache_seed: true
62-
63-
- name: build ubuntu_gcc_x86_64_riscv_fp16_cl3_0_unitcl_vecz
64-
uses: ./.github/actions/do_build_pr/run_ubuntu_gcc_x86_64_riscv_fp16_cl3_0_unitcl_vecz
65-
with:
66-
cache_seed: true
34+
# ubuntu_22_llvm_prev_jobs:
35+
# if: github.repository == 'uxlfoundation/oneapi-construction-kit' || github.event_name != 'schedule'
36+
# runs-on: ubuntu-22.04
37+
# container:
38+
# image: ghcr.io/uxlfoundation/ock_ubuntu_22.04-x86-64:latest
39+
# volumes:
40+
# - ${{github.workspace}}:${{github.workspace}}
41+
# steps:
42+
# - name: Checkout repo
43+
# uses: actions/checkout@v4
44+
45+
# - name: setup ubuntu
46+
# uses: ./.github/actions/setup_build
47+
# with:
48+
# llvm_version: ${{ env.llvm_previous }}
49+
# llvm_build_type: RelAssert
50+
# save: true
51+
# llvm_source: install
52+
53+
# - name: build host_x86_64
54+
# uses: ./.github/actions/do_build_pr/run_host_x86_64
55+
# with:
56+
# cache_seed: true
57+
58+
# - name: build riscv M1
59+
# uses: ./.github/actions/do_build_pr/run_riscv_m1
60+
# with:
61+
# cache_seed: true
62+
63+
# - name: build ubuntu_gcc_x86_64_riscv_fp16_cl3_0_unitcl_vecz
64+
# uses: ./.github/actions/do_build_pr/run_ubuntu_gcc_x86_64_riscv_fp16_cl3_0_unitcl_vecz
65+
# with:
66+
# cache_seed: true
6767

6868
ubuntu_22_llvm_current_jobs:
6969
if: github.repository == 'uxlfoundation/oneapi-construction-kit' || github.event_name != 'schedule'
70-
needs: [ubuntu_22_llvm_prev_jobs]
70+
# needs: [ubuntu_22_llvm_prev_jobs]
7171
runs-on: ubuntu-22.04
7272
container:
7373
image: ghcr.io/uxlfoundation/ock_ubuntu_22.04-x86-64:latest
@@ -85,21 +85,24 @@ jobs:
8585
save: true
8686
llvm_source: install
8787

88-
- name: build ubuntu_gcc_x86_64_riscv_fp16_cl3_0
89-
uses: ./.github/actions/do_build_pr/run_ubuntu_gcc_x86_64_riscv_fp16_cl3_0
90-
with:
91-
cache_seed: true
88+
# - name: build ubuntu_gcc_x86_64_riscv_fp16_cl3_0
89+
# uses: ./.github/actions/do_build_pr/run_ubuntu_gcc_x86_64_riscv_fp16_cl3_0
90+
# with:
91+
# cache_seed: true
9292

93-
- name: build ubuntu_gcc_x86_llvm_latest_x86_64_images_cl3_0_release
94-
uses: ./.github/actions/do_build_pr/run_ubuntu_gcc_x86_llvm_latest_x86_64_images_cl3_0_release
93+
# - name: build ubuntu_gcc_x86_llvm_latest_x86_64_images_cl3_0_release
94+
# uses: ./.github/actions/do_build_pr/run_ubuntu_gcc_x86_llvm_latest_x86_64_images_cl3_0_release
95+
# with:
96+
# cache_seed: true
97+
98+
# - name: build ubuntu_gcc_x86_64_refsi_g1_wi_cl3_0
99+
# uses: ./.github/actions/do_build_pr/run_ubuntu_gcc_x86_64_refsi_g1_wi_cl3_0
100+
# with:
101+
# cache_seed: true
102+
- name: build ubuntu_gcc_x86_64_refsi_tutorial
103+
uses: ./.github/actions/do_build_pr/run_pr_ubuntu_gcc_x86_64_refsi_tutorial
95104
with:
96105
cache_seed: true
97-
98-
- name: build ubuntu_gcc_x86_64_refsi_g1_wi_cl3_0
99-
uses: ./.github/actions/do_build_pr/run_ubuntu_gcc_x86_64_refsi_g1_wi_cl3_0
100-
with:
101-
cache_seed: true
102-
103106
# aarch 64
104107
ubuntu_22_llvm_current_aarch64_jobs:
105108
if: github.repository == 'uxlfoundation/oneapi-construction-kit' || github.event_name != 'schedule'

0 commit comments

Comments
 (0)