Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 938 Bytes

File metadata and controls

33 lines (22 loc) · 938 Bytes

Contributing Playground Samples

If you would like to create a new playground sample, that will show on sycl.tech and also our feeds, please create a new markdown file the named with the format slugified-event-name-here.md and place it within the /content/playground_samples/ directory.

Once you have created your file, copy and paste the contents below, replacing all the details with your own.

---
contributor: anonymous
title: "Hello World! (on device)"
summary: "Learn the basics with classic Hello World! sample, run on device."
---

#include <sycl/sycl.hpp>

class hello_world;

int main(int, char**) {
    std::cout << "Hello World!";
}

Once you have done all the above, create a pull request to the repository.

Notes

Support

Please use the issues section if you need support.