Skip to content

Alpaka VecMem Interface, main branch (2025.05.01.) #959

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

krasznaa
Copy link
Member

@krasznaa krasznaa commented May 1, 2025

This is a proposal for how I'd imagine using Alpaka in the longer term. This was triggered by #958, whose code I didn't really like. But since I have very little experience with Alpaka, I wanted to try out for myself what sort of code could be written.

@CrossR, @StewMH, this is how I imagine that things could look like. 🤔

  • traccc::alpaka::queue is the same sort of thing that you tried to make as well Ryan. I just simplified it so that it would only expose the underlying Alpaka queue, and not try to be too smart with the native devices/queues.
  • traccc::alpaka::vecmem_objects has the interface that Ryan made, just with a (in my mind) much simpler implementation.

You see, once you hide the choice of VecMem objects behind such a non-specific interface, you can just use simple pre-processor statements in the background. There's no need to mix pre-processor formalism with traits in this case.

Please check if this sort of a setup could be made to work with the existing algorithms. Since that I didn't really try...

@krasznaa krasznaa added the alpaka Changes related to Alpaka label May 1, 2025
@krasznaa krasznaa requested a review from StewMH May 1, 2025 17:17
Meant as an example/guidance for Ryan Cross.
@krasznaa krasznaa force-pushed the AlpakaVecmemOrganization-main-20250501 branch from fcb7faf to fac284a Compare May 2, 2025 07:35
Copy link

sonarqubecloud bot commented May 2, 2025

@CrossR
Copy link
Contributor

CrossR commented May 2, 2025

Thanks for this! I'll take a look today and look at integrating it back into the Alpaka algorithms, and see how I get on.

@CrossR
Copy link
Contributor

CrossR commented May 2, 2025

PR #960 is now opened with this commit as the base.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
alpaka Changes related to Alpaka
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants