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

simplify device functions #2440

Open
fwyzard opened this issue Dec 12, 2024 · 1 comment
Open

simplify device functions #2440

fwyzard opened this issue Dec 12, 2024 · 1 comment

Comments

@fwyzard
Copy link
Contributor

fwyzard commented Dec 12, 2024

alpaka suggests that device functions should be templated on the accelerator type, e.g.

template <typename TAcc>
ALPAKA_FN_ACC float compute(TAcc const& acc, ...);

However in many cases the full accelerator type is not needed - or used.
For example, math functions care about the back-end (CPU, CUDA, SYCL, etc.) but not about the dimensionality of the kernel (1d, 2d, 3d).

Can we find a way to simplify this kind of functions, possibly without breaking the existing code ?

@psychocoderHPC
Copy link
Member

@fwyzard Can you point me in our meeting about alpaka2 to this topic again, please. For math functions, I have a solution.

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

2 participants