Skip to content

Fix Lesson 4 slide code snippets#420

Open
EwanC wants to merge 1 commit intoKhronosGroup:mainfrom
EwanC:lesson_04_snippets
Open

Fix Lesson 4 slide code snippets#420
EwanC wants to merge 1 commit intoKhronosGroup:mainfrom
EwanC:lesson_04_snippets

Conversation

@EwanC
Copy link
Copy Markdown
Contributor

@EwanC EwanC commented Jan 16, 2026

This PR is inspired by the Lesson 4 index.html changes in #326 and fixes up the handler::single_task invocations in a couple of places to make sure they are correct.

  • Change parallel_for to single_task in early example where we haven't defined bufO yet to call bufO.get_range() on.
  • Remove (id<1> i) parameter for single_task lambda invocation, as this shouldn't have any parameters.

This PR is inspired by the Lesson 4 `index.html` changes in
KhronosGroup#326
and fixes up the `handler::single_task` invocations in
a couple of places to make sure they are correct.

* Change `parallel_for` to `single_task` in early example where
  we haven't defined `bufO` yet to call `bufO.get_range()` on.
* Remove `(id<1> i)` parameter for `single_task` lambda invocation, as
  this shouldn't have any parameters.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant