Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SYCL][Graph] Reenable L0 interop test on PVC #15493

Merged
merged 1 commit into from
Sep 30, 2024
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
// Extra run to check for immediate-command-list in Level Zero
// RUN: %if level_zero %{env SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS=1 %{l0_leak_check} %{run} %t.out %S/../Inputs/Kernels/saxpy.spv 2>&1 | FileCheck %s --implicit-check-not=LEAK %}

// https://github.com/intel/llvm/issues/14826
// XFAIL: arch-intel_gpu_pvc

#define GRAPH_E2E_EXPLICIT

#include "../Inputs/interop-level-zero-launch-kernel.cpp"
20 changes: 13 additions & 7 deletions sycl/test-e2e/Graph/Inputs/interop-level-zero-launch-kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,20 +115,26 @@ int main(int, char **argv) {
ZeContext, ZeDevice, &ZeCommandQueueDesc, &ZeCommandList);
assert(status == ZE_RESULT_SUCCESS);

status = zeKernelSetArgumentValue(ZeKernel, 0,
Size * sizeof(uint32_t), &MemZ);
status = zeKernelSetArgumentValue(ZeKernel, 0, sizeof(MemZ), &MemZ);
assert(status == ZE_RESULT_SUCCESS);
status = zeKernelSetArgumentValue(ZeKernel, 1,
Size * sizeof(uint32_t), &MemX);
status = zeKernelSetArgumentValue(ZeKernel, 1, sizeof(MemX), &MemX);
assert(status == ZE_RESULT_SUCCESS);
ze_group_count_t ZeGroupCount{Size, 1, 1};

zeKernelSetGroupSize(ZeKernel, 1024, 1, 1);
uint32_t GroupSizeX = 32;
uint32_t GroupSizeY = 1;
uint32_t GroupSizeZ = 1;
status = zeKernelSuggestGroupSize(ZeKernel, Size, 1, 1, &GroupSizeX,
&GroupSizeY, &GroupSizeZ);
assert(status == ZE_RESULT_SUCCESS);

status = zeKernelSetGroupSize(ZeKernel, GroupSizeX, GroupSizeY,
GroupSizeZ);
assert(status == ZE_RESULT_SUCCESS);

ze_group_count_t ZeGroupCount{
static_cast<uint32_t>(Size) / GroupSizeX, 1, 1};
status = zeCommandListAppendLaunchKernel(
ZeCommandList, ZeKernel, &ZeGroupCount, nullptr, 0, nullptr);

assert(status == ZE_RESULT_SUCCESS);

status = zeCommandListHostSynchronize(ZeCommandList, 0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
// Extra run to check for immediate-command-list in Level Zero
// RUN: %if level_zero %{env SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS=1 %{l0_leak_check} %{run} %t.out %S/../Inputs/Kernels/saxpy.spv 2>&1 | FileCheck %s --implicit-check-not=LEAK %}

// https://github.com/intel/llvm/issues/14826
// XFAIL: arch-intel_gpu_pvc

#define GRAPH_E2E_RECORD_REPLAY

#include "../Inputs/interop-level-zero-launch-kernel.cpp"
Loading