Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
118 changes: 59 additions & 59 deletions .github/workflows/ur-precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,35 +56,35 @@ jobs:
# Extra native CPU jobs are here to force the loader to be used.
# UR will not use the loader if there is only one target.
include:
- name: L0
runner: UR_L0
image_options: -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN
- name: L0_V2
runner: UR_L0
image_options: -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN
- name: L0
runner: UR_L0
static: ON
image_options: -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN
- name: L0
runner: UR_L0
other_adapter: NATIVE_CPU
image_options: -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN
- name: HIP
runner: UR_HIP
image_options: -u 1001 --device=/dev/dri --device=/dev/kfd --cap-add=SYS_ADMIN
# - name: L0
# runner: UR_L0
# image_options: -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN
# - name: L0_V2
# runner: UR_L0
# image_options: -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN
# - name: L0
# runner: UR_L0
# static: ON
# image_options: -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN
# - name: L0
# runner: UR_L0
# other_adapter: NATIVE_CPU
# image_options: -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN
# - name: HIP
# runner: UR_HIP
# image_options: -u 1001 --device=/dev/dri --device=/dev/kfd --cap-add=SYS_ADMIN
- name: CUDA
runner: UR_CUDA
image_options: -u 1001 --privileged --cap-add SYS_ADMIN --gpus all
- name: OPENCL
runner: UR_OPENCL
docker_image: "ghcr.io/intel/llvm/ubuntu2204_build:latest"
image_options: -u 1001 --device=/dev/dri --device=/dev/kfd --privileged --cap-add SYS_ADMIN
- name: OPENCL
runner: UR_OPENCL
other_adapter: NATIVE_CPU
docker_image: "ghcr.io/intel/llvm/ubuntu2204_build:latest"
image_options: -u 1001 --device=/dev/dri --device=/dev/kfd --privileged --cap-add SYS_ADMIN
# - name: OPENCL
# runner: UR_OPENCL
# docker_image: "ghcr.io/intel/llvm/ubuntu2204_build:latest"
# image_options: -u 1001 --device=/dev/dri --device=/dev/kfd --privileged --cap-add SYS_ADMIN
# - name: OPENCL
# runner: UR_OPENCL
# other_adapter: NATIVE_CPU
# docker_image: "ghcr.io/intel/llvm/ubuntu2204_build:latest"
# image_options: -u 1001 --device=/dev/dri --device=/dev/kfd --privileged --cap-add SYS_ADMIN
- name: NATIVE_CPU
runner: UR_NATIVE_CPU
docker_image: "ghcr.io/intel/llvm/ubuntu2204_build:latest"
Expand All @@ -107,42 +107,42 @@ jobs:
# if: ${{ !cancelled() && contains(needs.detect_changes.outputs.filters, 'ur_offload_adapter') }}
# uses: ./.github/workflows/ur-build-offload.yml

macos:
name: MacOS build only
needs: [detect_changes, source_checks]
if: ${{ !cancelled() && contains(needs.detect_changes.outputs.filters, 'ur') }}
strategy:
matrix:
os: ['macos-latest']
runs-on: ${{matrix.os}}
# macos:
# name: MacOS build only
# needs: [detect_changes, source_checks]
# if: ${{ !cancelled() && contains(needs.detect_changes.outputs.filters, 'ur') }}
# strategy:
# matrix:
# os: ['macos-latest']
# runs-on: ${{matrix.os}}

steps:
- name: Checkout LLVM
uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v4.1.1
# steps:
# - name: Checkout LLVM
# uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v4.1.1

- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v5.0.0
with:
python-version: "3.10"
# - uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v5.0.0
# with:
# python-version: "3.10"

- name: Install prerequisites
working-directory: ${{github.workspace}}/unified-runtime
run: |
python3 -m pip install -r third_party/requirements.txt
python3 -m pip install -r third_party/requirements_testing.txt
# - name: Install prerequisites
# working-directory: ${{github.workspace}}/unified-runtime
# run: |
# python3 -m pip install -r third_party/requirements.txt
# python3 -m pip install -r third_party/requirements_testing.txt

- name: Install hwloc
run: brew install hwloc
# - name: Install hwloc
# run: brew install hwloc

- name: Configure Unified Runtime project
working-directory: ${{github.workspace}}/unified-runtime
run: >
cmake
-B${{github.workspace}}/build
-DUR_ENABLE_TRACING=ON
-DUR_DEVELOPER_MODE=ON
-DCMAKE_BUILD_TYPE=Release
-DUR_BUILD_TESTS=ON
-DUR_FORMAT_CPP_STYLE=ON
# - name: Configure Unified Runtime project
# working-directory: ${{github.workspace}}/unified-runtime
# run: >
# cmake
# -B${{github.workspace}}/build
# -DUR_ENABLE_TRACING=ON
# -DUR_DEVELOPER_MODE=ON
# -DCMAKE_BUILD_TYPE=Release
# -DUR_BUILD_TESTS=ON
# -DUR_FORMAT_CPP_STYLE=ON

- name: Build
run: cmake --build ${{github.workspace}}/build -j $(sysctl -n hw.logicalcpu)
# - name: Build
# run: cmake --build ${{github.workspace}}/build -j $(sysctl -n hw.logicalcpu)
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,8 @@ UUR_PLATFORM_TEST_SUITE_WITH_PARAM(
TEST_P(urEnqueueKernelLaunchIncrementMultiDeviceTest, Success) {
UUR_KNOWN_FAILURE_ON(uur::LevelZeroV2{});
// https://github.com/intel/llvm/issues/19033
UUR_KNOWN_FAILURE_ON(uur::CUDA{});

// UUR_KNOWN_FAILURE_ON(uur::CUDA{});
auto waitOnEvent = std::get<0>(getParam()).value;
auto runBackgroundCheck = std::get<1>(getParam()).value;

Expand Down
Loading