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 note about unit stride to layout #1736

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

artv3
Copy link
Member

@artv3 artv3 commented Sep 17, 2024

Summary

Add a note in the documentation regarding unit stride for RAJA::layouts

docs/sphinx/user_guide/tutorial/view_layout.rst Outdated Show resolved Hide resolved
@@ -55,20 +55,31 @@ which we define as:
:language: C++

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we can add a warning about RAJA View performance?

Suggested change
.. warning:: In order to get the best performance out of ``RAJA::View``, be sure you are building in release mode (i.e. make sure you don't have a debug build when doing performance comparisons).

¯_(ツ)_/¯

Copy link
Member

@adayton1 adayton1 Sep 18, 2024

Choose a reason for hiding this comment

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

I feel like building with release for performance is a given, and adding a statement like that might actually be more confusing (does building optimized with debug symbols degrade performance?).

Copy link
Member Author

Choose a reason for hiding this comment

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

If you use -G in a Cuda build it removes kernel optimizations

Copy link
Member

Choose a reason for hiding this comment

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

But -lineinfo should not, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

Right

Copy link
Member

Choose a reason for hiding this comment

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

OK, I leave it up to you whether you want to add this note.

Copy link
Member Author

Choose a reason for hiding this comment

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

I can go either way, what do others think?

Copy link
Member

@adayton1 adayton1 left a comment

Choose a reason for hiding this comment

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

LGTM

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

Successfully merging this pull request may close these issues.

3 participants