forked from intel/llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SYCL][NFC] remove SYCL 2020 incompatible tests (intel#14261)
This PR removes the SYCL 2017 deprecated tests as a continuation of intel#14239 in preparation to land intel#13411
- Loading branch information
1 parent
0ccb0b7
commit 34a2fac
Showing
37 changed files
with
85 additions
and
1,240 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
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
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 |
---|---|---|
@@ -1,37 +1,23 @@ | ||
// RUN: %clang_cc1 -triple spir64 -fsycl-is-device -internal-isystem %S/Inputs -verify -fsyntax-only -sycl-std=2017 -DSYCL2017 %s | ||
// RUN: %clang_cc1 -triple spir64 -fsycl-is-device -internal-isystem %S/Inputs -verify -fsyntax-only -sycl-std=2020 -DSYCL2020 %s | ||
// RUN: %clang_cc1 -triple spir64 -fsycl-is-device -internal-isystem %S/Inputs -verify -fsyntax-only -Wno-sycl-strict -DNODIAG %s | ||
// RUN: %clang_cc1 -triple spir64 -fsycl-is-device -internal-isystem %S/Inputs -verify -fsyntax-only -sycl-std=2020 -Wno-sycl-strict -DNODIAG %s | ||
// RUN: %clang_cc1 -triple spir64 -fsycl-is-device -internal-isystem %S/Inputs -verify -fsyntax-only %s | ||
// RUN: %clang_cc1 -triple spir64 -fsycl-is-device -internal-isystem %S/Inputs -verify -fsyntax-only -Wno-sycl-strict %s | ||
|
||
#include "sycl.hpp" | ||
|
||
using namespace sycl; | ||
|
||
// expected-no-diagnostics | ||
|
||
int simple_add(int i) { | ||
return i + 1; | ||
} | ||
|
||
// ensure both compile. | ||
int main() { | ||
queue q; | ||
#if defined(SYCL2020) | ||
// expected-warning@#KernelSingleTask2017 {{passing kernel functions by value is deprecated in SYCL 2020}} | ||
// expected-note@+3 {{in instantiation of function template specialization}} | ||
#endif | ||
q.submit([&](handler &h) { | ||
h.single_task_2017<class sycl2017>([]() { simple_add(10); }); | ||
}); | ||
|
||
#if defined(SYCL2017) | ||
// expected-warning@#KernelSingleTask {{passing of kernel functions by reference is a SYCL 2020 extension}} | ||
// expected-note@+3 {{in instantiation of function template specialization}} | ||
#endif | ||
q.submit([&](handler &h) { | ||
h.single_task<class sycl2020>([]() { simple_add(11); }); | ||
}); | ||
|
||
return 0; | ||
} | ||
#if defined(NODIAG) | ||
// expected-no-diagnostics | ||
#endif |
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
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
Oops, something went wrong.