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

Fix template arguments of SYCL buffer specializations #2426

Merged
merged 2 commits into from
Nov 21, 2024

Conversation

AuroraPerego
Copy link
Contributor

BufCpuSycl, BufFpgaSyclIntel, and BufGpuSyclIntel were still templated on the platform instead of being templated on the Tag.
We are not using them anywhere in the alpaka tests, that's why this issue has not been spotted before.
I changed memBufTest to use them explicitly to avoid similar issues in the future, let me know if it's ok.

{
return alpaka::allocBuf<TElem, TIdx>(dev, extent);
}
#elif defined(ALPAKA_ACC_GPU_HIP_ENABLED)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would change

Suggested change
#elif defined(ALPAKA_ACC_GPU_HIP_ENABLED)
#endif
#if defined(ALPAKA_ACC_GPU_HIP_ENABLED)

so if a test enables multiple back-ends they can all be tested.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, done!

@fwyzard
Copy link
Contributor

fwyzard commented Nov 21, 2024

Looks good to me 👍🏻

@fwyzard fwyzard merged commit ff5311a into alpaka-group:develop Nov 21, 2024
22 checks passed
@fwyzard fwyzard added this to the 2.0.0 milestone Nov 21, 2024
@AuroraPerego AuroraPerego deleted the fixUsingBuf branch November 21, 2024 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants