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

Add a few explicit tests on pitches #1801

Closed

Conversation

bernhardmgruber
Copy link
Member

@bernhardmgruber bernhardmgruber commented Sep 28, 2022

Depends on #1610.


checkBufferPitches(dev, alpaka::Vec{10}, alpaka::Vec{40});

constexpr auto pitch = 512;
Copy link
Member Author

Choose a reason for hiding this comment

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

AFAIK, NVIDIA does not guarantee a row pitch anywhere. It is just internal magic of cudaMallocPitch. So this test may fail on some hardware at some point. I guess I should query the row pitch. Should we maybe add an alpaka function for that?

Copy link
Member Author

Choose a reason for hiding this comment

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

Actually, we cannot really do this either, because all we could do is call cudaMallocPitch, since that may even use a different pitch for each call. It may not even be dependent on the arguments.

Copy link
Member

Choose a reason for hiding this comment

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

We should rethink how to write this test. The pitch should not be set explicitly because this value is given implicitly.

@bernhardmgruber
Copy link
Member Author

PR #2093 will simplify how pitches work and a few similar tests. That should make this PR obsolete.

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