-
Notifications
You must be signed in to change notification settings - Fork 695
Buffers
Wei, Jimmy T edited this page Mar 10, 2023
·
1 revision
- Prefer using class template argument deduction
- Verbose SYCL style:
vector<int> v;
buffer<int> b(v.data(), v.size());
- Simplified DPC++ style (-std=c++11):
vector<int> v;
buffer<int> b(v);
- Simplified DPC++ style (-std=c++17):
vector<int> v;
buffer b(v);
- Prefer using class template argument deduction
- Verbose SYCL style:
- buffer<int, 2> b(ptr, range<2>(5, 5));
- Simplified DPC++ style (-std=c++17):
- buffer b(ptr, range(5, 5));
- Home
- DPC++ what is it?
- Administration
- sample.json
- Sample Browser
- GitHub Steps for Contribution
- New Sample Submission
- Guidelines