Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Check that program is built once for "fused" case #697

Closed
wants to merge 1 commit into from
Closed
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
6 changes: 4 additions & 2 deletions SYCL/Basic/subdevice_pi.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
// RUN: %CPU_RUN_PLACEHOLDER SYCL_PI_TRACE=2 %t.out separate equally %CPU_CHECK_PLACEHOLDER --check-prefix CHECK-SEPARATE
// RUN: %CPU_RUN_PLACEHOLDER SYCL_PI_TRACE=2 %t.out shared equally %CPU_CHECK_PLACEHOLDER --check-prefix CHECK-SHARED --implicit-check-not piContextCreate --implicit-check-not piMemBufferCreate
// RUN: %CPU_RUN_PLACEHOLDER SYCL_PI_TRACE=2 %t.out fused equally %CPU_CHECK_PLACEHOLDER --check-prefix CHECK-FUSED --implicit-check-not piContextCreate --implicit-check-not piMemBufferCreate
// RUN: %CPU_RUN_PLACEHOLDER SYCL_PI_TRACE=2 %t.out fused equally %CPU_CHECK_PLACEHOLDER --check-prefix CHECK-FUSED --implicit-check-not piProgramBuild --implicit-check-not piContextCreate --implicit-check-not piMemBufferCreate
//
// Intel OpenCL CPU Runtime supports device partition on all (multi-core)
// platforms. Other devices may not support this.
Expand Down Expand Up @@ -146,8 +146,10 @@ static bool check_fused_context(device dev, buffer<int, 1> buf,
context fused_context(devices);
// CHECK-FUSED: Create fused context
// CHECK-FUSED: ---> piContextCreate
// CHECK-FUSED: ---> piProgramBuild
//
// Make sure that a single context is created: see --implicit-check-not above.
// Make sure that a single context is created and device code is built only
// once: see --implicit-check-not above.

log_pi("Test root device");
{
Expand Down