-
Notifications
You must be signed in to change notification settings - Fork 744
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SYCL][LIT] Mark spec const LIT as pass (#1875)
The spec_const LIT tests start to pass for Intel CPU and GPU devices with the Intel OpenCL GPU driver 20.19.16754. Duplicate the test for accelerators, e.g., FPGA, and only fail it for these. As a result regressions are now caught for OpenCL CPU and GPU devices. Fixes #1873 Signed-off-by: Bjoern Knafla <[email protected]>
- Loading branch information
1 parent
e5ea144
commit 400e1e6
Showing
4 changed files
with
42 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |