FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
computecpp-sdk/tools/makefile_basic/app.cpp at master · codeplaysoftware/computecpp-sdk · GitHub
This repository was archived by the owner on Aug 11, 2023. It is now read-only.
codeplaysoftware
computecpp-sdk
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
computecpp-sdk
/
tools
/
makefile_basic
/
app.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
13 lines (10 loc) · 299 Bytes
Breadcrumbs
computecpp-sdk
/
tools
/
makefile_basic
/
app.cpp
Copy path
File metadata and controls
13 lines (10 loc) · 299 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
//
Example SYCL application to demo Makefile.
#
include
<
CL/sycl.hpp
>
#
include
<
iostream
>
int
main
() {
cl::sycl::queue q;
q.
submit
([&](cl::sycl::handler& cgh) {
cl::sycl::stream
ostream
(
1024
,
64
, cgh);
cgh.
single_task
<
class
hello
>([=]() { ostream <<
"
Hello, ComputeCpp
\n
"
; });
});
}
Back
|
FazBrowse Home
|
New Git URL