Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vikunja acc object for specific device funcitons #67

Open
SimeonEhrig opened this issue Jan 12, 2022 · 0 comments
Open

vikunja acc object for specific device funcitons #67

SimeonEhrig opened this issue Jan 12, 2022 · 0 comments
Assignees

Comments

@SimeonEhrig
Copy link
Member

Alpaka provides different device function via the alpaka acc to access the current id (alpaka::getIdx), do math (alpaka::math::abs) and other things. Some of the functions allows to break the constrains of the vikunja algorithm like writing to a specific element via thread id in the input memory. Therefore @j-stephan suggest in #59 (comment) to provide an vikunja::acc type which only allows access to safe functions.

This issue should collect feedback and should decide if it is useful to implement a vikunja::acc object.

Pros

  • make it more safe the acc object

Con

  • extra work to maintain the vikunja::acc object and keep track with the alpaka::acc object
  • for some functions, it is not clear, if they should be forbidden or not
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

No branches or pull requests

1 participant