Skip to content

Update vector_addition for new device selector - #26

Merged
joeatodd merged 3 commits into
masterfrom
update-vec-add
Nov 10, 2022
Merged

Update vector_addition for new device selector#26
joeatodd merged 3 commits into
masterfrom
update-vec-add

Conversation

@joeatodd

Copy link
Copy Markdown
Contributor

Device selectors as functors are deprecated and replaced with functions taking sycl::device const & and returning int. This PR updates the vector addition examples for this change.

@hdelan

hdelan commented Nov 10, 2022

Copy link
Copy Markdown

Looks good, but would a lambda be more SYCL-esque?

@joeatodd

Copy link
Copy Markdown
Contributor Author

Yeah good point! I'll make the change.

@hdelan

hdelan commented Nov 10, 2022

Copy link
Copy Markdown

LGTM

@joeatodd
joeatodd merged commit 4d59331 into master Nov 10, 2022
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.

2 participants