-
Notifications
You must be signed in to change notification settings - Fork 743
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SYCL] Add SYCL device code attribute to clang.
Signed-off-by: Vladimir Lazarev <[email protected]>
- Loading branch information
1 parent
2f8d080
commit fa1ff0a
Showing
5 changed files
with
33 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// RUN: %clang -S --sycl -I /sycl_include_path -I /opencl_include_path -Xclang -ast-dump %s | FileCheck %s | ||
// XFAIL: * | ||
#include <CL/sycl.hpp> | ||
|
||
|
||
using namespace cl::sycl; | ||
|
||
int main() { | ||
|
||
queue myQueue; | ||
|
||
myQueue.submit([&](handler &cgh) { | ||
|
||
cgh.single_task<class kernel_function>([=]() { | ||
}); | ||
}); | ||
|
||
myQueue.wait(); | ||
} | ||
// CHECK: SYCLDeviceAttr |