Skip to content

[SYCL][LIT] Mark spec const LIT as pass #1875

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

Merged
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
9 changes: 3 additions & 6 deletions sycl/test/spec_const/spec_const_hw.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
// RUN: %clangxx -fsycl %s -o %t.out
// UNSUPPORTED: cuda || level0
//
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
// RUN: env SYCL_DEVICE_TYPE=HOST %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
// TODO: re-enable after CI drivers are updated to newer which support spec
// constants:
// XFAIL: linux && opencl
// UNSUPPORTED: cuda || level0
//
//==----------- spec_const_hw.cpp ------------------------------------------==//
//
Expand Down
17 changes: 17 additions & 0 deletions sycl/test/spec_const/spec_const_hw_accelerator.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//==----------- spec_const_hw_accelerator.cpp ------------------------------==//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
// The test checks that the specialization constant feature works correctly -
// tool chain processes them correctly and runtime can correctly execute the
// program.

// TODO: re-enable after CI drivers are updated to newer which support spec
// constants:
// XFAIL: linux && opencl && accelerator
// UNSUPPORTED: cuda || level0
#include "spec_const_hw.cpp"
// RUN: %ACC_RUN_PLACEHOLDER %t.out
9 changes: 3 additions & 6 deletions sycl/test/spec_const/spec_const_redefine.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
// RUN: %clangxx -fsycl %s -o %t.out
// UNSUPPORTED: cuda || level0
//
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
// RUN: env SYCL_DEVICE_TYPE=HOST %t.out
// RUN: env SYCL_PI_TRACE=2 %CPU_RUN_PLACEHOLDER %t.out 2>&1 %CPU_CHECK_PLACEHOLDER
// RUN: env SYCL_PI_TRACE=2 %GPU_RUN_PLACEHOLDER %t.out 2>&1 %GPU_CHECK_PLACEHOLDER
// RUN: env SYCL_PI_TRACE=2 %ACC_RUN_PLACEHOLDER %t.out 2>&1 %ACC_CHECK_PLACEHOLDER
// TODO: re-enable after CI drivers are updated to newer which support spec
// constants:
// XFAIL: linux && opencl
// UNSUPPORTED: cuda || level0
//
//==----------- spec_const_redefine.cpp ------------------------------------==//
//
Expand Down
19 changes: 19 additions & 0 deletions sycl/test/spec_const/spec_const_redefine_accelerator.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//==----------- spec_const_redefine.cpp ------------------------------------==//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
// The test checks that:
// - a specialization constant can be redifined and correct new value is used
// after redefinition.
// - the program is JITted only once per a unique set of specialization
// constants values.

// TODO: re-enable after CI drivers are updated to newer which support spec
// constants:
// XFAIL: linux && opencl && accelerator
// UNSUPPORTED: cuda || level0
#include "spec_const_redefine_accelerator.cpp"
// RUN: env SYCL_PI_TRACE=2 %ACC_RUN_PLACEHOLDER %t.out 2>&1 %ACC_CHECK_PLACEHOLDER