From 599ed5d29edea5728198916e7aaf0f2dd429d285 Mon Sep 17 00:00:00 2001 From: Dmitry Vodoypanov Date: Wed, 21 Jun 2023 17:44:59 -0400 Subject: [PATCH 1/2] [SYCL] Fix self-build compilation after PR #8268 --- .github/workflows/sycl_post_commit.yml | 3 ++- sycl/plugins/unified_runtime/ur/adapters/cuda/kernel.cpp | 2 ++ .../ur/adapters/level_zero/ur_level_zero_device.cpp | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/sycl_post_commit.yml b/.github/workflows/sycl_post_commit.yml index 74a566b5f7c87..4323e68942a92 100644 --- a/.github/workflows/sycl_post_commit.yml +++ b/.github/workflows/sycl_post_commit.yml @@ -1,7 +1,8 @@ name: SYCL Post Commit + on: - push: + pull_request_target: branches: - sycl - sycl-devops-pr/** diff --git a/sycl/plugins/unified_runtime/ur/adapters/cuda/kernel.cpp b/sycl/plugins/unified_runtime/ur/adapters/cuda/kernel.cpp index f35d23a85e26f..1d6ae89f9b493 100644 --- a/sycl/plugins/unified_runtime/ur/adapters/cuda/kernel.cpp +++ b/sycl/plugins/unified_runtime/ur/adapters/cuda/kernel.cpp @@ -302,6 +302,8 @@ urKernelSetArgMemObj(ur_kernel_handle_t hKernel, uint32_t argIndex, UR_ASSERT(hKernel, UR_RESULT_ERROR_INVALID_NULL_HANDLE); + std::ignore = Properties; + // Below sets kernel arg when zero-sized buffers are handled. // In such case the corresponding memory is null. if (hArgValue == nullptr) { diff --git a/sycl/plugins/unified_runtime/ur/adapters/level_zero/ur_level_zero_device.cpp b/sycl/plugins/unified_runtime/ur/adapters/level_zero/ur_level_zero_device.cpp index 0be520e2928b6..b86ee6a9e4836 100644 --- a/sycl/plugins/unified_runtime/ur/adapters/level_zero/ur_level_zero_device.cpp +++ b/sycl/plugins/unified_runtime/ur/adapters/level_zero/ur_level_zero_device.cpp @@ -327,14 +327,14 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo( if (Device->isCCS()) { struct { - ur_device_partition_property_t Arr[2]; + ur_device_partition_t Arr[2]; } PartitionProperties = { {UR_DEVICE_PARTITION_BY_CSLICE, ur_device_partition_t(0)}}; return ReturnValue(PartitionProperties); } struct { - ur_device_partition_property_t Arr[3]; + ur_device_partition_t Arr[3]; } PartitionProperties = { {UR_DEVICE_PARTITION_BY_AFFINITY_DOMAIN, (ur_device_partition_t) From ec712265d99d8ffe413ccd3082a5a1bb77d49522 Mon Sep 17 00:00:00 2001 From: Dmitry Vodopyanov Date: Thu, 22 Jun 2023 12:27:35 +0200 Subject: [PATCH 2/2] Update sycl_post_commit.yml --- .github/workflows/sycl_post_commit.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/sycl_post_commit.yml b/.github/workflows/sycl_post_commit.yml index 4323e68942a92..74a566b5f7c87 100644 --- a/.github/workflows/sycl_post_commit.yml +++ b/.github/workflows/sycl_post_commit.yml @@ -1,8 +1,7 @@ name: SYCL Post Commit - on: - pull_request_target: + push: branches: - sycl - sycl-devops-pr/**