From 7b3380a617a843ae1e82fd3db2bc7cd99d9ca56f Mon Sep 17 00:00:00 2001 From: Lukasz Dorau Date: Fri, 24 Jan 2025 13:34:56 +0100 Subject: [PATCH] DEBUG CI --- .github/workflows/multi_device.yml | 5 +- .github/workflows/unified-runtime.yml | 80 -------------------------- source/adapters/level_zero/context.cpp | 2 + 3 files changed, 5 insertions(+), 82 deletions(-) diff --git a/.github/workflows/multi_device.yml b/.github/workflows/multi_device.yml index 5334e86b87..cddabb691b 100644 --- a/.github/workflows/multi_device.yml +++ b/.github/workflows/multi_device.yml @@ -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}, @@ -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 diff --git a/.github/workflows/unified-runtime.yml b/.github/workflows/unified-runtime.yml index 8e245b7300..cdef103bf1 100644 --- a/.github/workflows/unified-runtime.yml +++ b/.github/workflows/unified-runtime.yml @@ -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) diff --git a/source/adapters/level_zero/context.cpp b/source/adapters/level_zero/context.cpp index 67dcd513e5..e6a4e3a7e8 100644 --- a/source/adapters/level_zero/context.cpp +++ b/source/adapters/level_zero/context.cpp @@ -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();