diff --git a/docs/07-sycl-intro.md b/docs/07-sycl-intro.md index 1375870..7e74bec 100644 --- a/docs/07-sycl-intro.md +++ b/docs/07-sycl-intro.md @@ -60,31 +60,6 @@ lang: en - Nvidia GPUs (via CUDA), AMD GPUs (via ROCM) -# Anatomy of a SYCL code - - -```cpp -#include -using namespace sycl; - -template -void axpy(queue &q, const T &a, const std::vector &x, std::vector &y) { - range<1> N{x.size()}; - buffer x_buf(x.data(), N); - buffer y_buf(y.data(), N); - - q.submit([&](handler &h) { - auto x = x_buf.template get_access(h); // accessor x(x_buf, h, read_only); - auto y = y_buf.template get_access(h); // accessor y(y_buf, h, read_write); - - h.parallel_for(N, [=](id<1> i) { - y[i] += a * x[i]; - }); - }); - q.wait_and_throw(); -} -``` - # Summary