Skip to content

Commit

Permalink
DEBUG CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ldorau committed Jan 24, 2025
1 parent 8b689e9 commit 7b3380a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 82 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/multi_device.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
name: Multi Device testing
if: github.repository == 'oneapi-src/unified-runtime' # run only on upstream; forks won't have the HW
strategy:
fail-fast: false
matrix:
adapter: [
{name: L0},
Expand Down Expand Up @@ -58,8 +59,8 @@ jobs:

- name: Test adapter specific
working-directory: ${{github.workspace}}/build
run: ctest -C ${{matrix.build_type}} --output-on-failure -L "adapter-specific" --timeout 180
run: ctest -C ${{matrix.build_type}} -V -L "adapter-specific" --timeout 180

- name: Test adapters
working-directory: ${{github.workspace}}/build
run: env UR_CTS_ADAPTER_PLATFORM="${{matrix.adapter.platform}}" ctest -C ${{matrix.build_type}} --output-on-failure -L "conformance" -E "exp_command_buffer" --timeout 180
run: env UR_CTS_ADAPTER_PLATFORM="${{matrix.adapter.platform}}" ctest -C ${{matrix.build_type}} -V -L "conformance" -E "exp_command_buffer" --timeout 180
80 changes: 0 additions & 80 deletions .github/workflows/unified-runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,83 +36,3 @@ jobs:
runner_name: L0
static_loader: ON
static_adapter: ON

opencl:
name: OpenCL
uses: ./.github/workflows/build-hw-reusable.yml
with:
adapter_name: OPENCL
runner_name: OPENCL
platform: "Intel(R) OpenCL"

cuda:
name: CUDA
uses: ./.github/workflows/build-hw-reusable.yml
with:
adapter_name: CUDA
runner_name: CUDA

hip:
name: HIP
uses: ./.github/workflows/build-hw-reusable.yml
with:
adapter_name: HIP
runner_name: HIP

native-cpu:
name: Native CPU
uses: ./.github/workflows/build-hw-reusable.yml
with:
adapter_name: NATIVE_CPU
runner_name: NATIVE_CPU

# Native CPU jobs are here to force the loader to be used (UR will not use the loader if there is only one target)
combined-opencl-native-cpu:
name: OpenCL + Native CPU (Loader)
uses: ./.github/workflows/build-hw-reusable.yml
with:
adapter_name: OPENCL
other_adapter_name: NATIVE_CPU
runner_name: OPENCL
platform: "OPENCL:Intel(R) OpenCL"

combined-level-zero-native-cpu:
name: Level Zero + Native CPU (Loader)
uses: ./.github/workflows/build-hw-reusable.yml
with:
adapter_name: L0
other_adapter_name: NATIVE_CPU
runner_name: L0

macos-build:
name: macOS / Build
strategy:
matrix:
os: ['macos-13']
runs-on: ${{matrix.os}}

steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: 3.9

- name: Install prerequisites
run: python3 -m pip install -r third_party/requirements.txt

- name: Install hwloc
run: brew install hwloc

- name: Configure CMake
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
-DUMF_ENABLE_POOL_TRACKING=ON
- name: Build
run: cmake --build ${{github.workspace}}/build -j $(sysctl -n hw.logicalcpu)
2 changes: 2 additions & 0 deletions source/adapters/level_zero/context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,8 @@ ur_result_t ContextReleaseHelper(ur_context_handle_t Context) {
ze_context_handle_t DestroyZeContext =
Context->OwnNativeHandle ? Context->ZeContext : nullptr;

fprintf(stderr, ">>> L0 ContextReleaseHelper() called !!!\n");

// Clean up any live memory associated with Context
ur_result_t Result = Context->finalize();

Expand Down

0 comments on commit 7b3380a

Please sign in to comment.