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

Take more launch-config-related sizes as size_t #684

Open
eyalroz opened this issue Sep 22, 2024 · 1 comment
Open

Take more launch-config-related sizes as size_t #684

eyalroz opened this issue Sep 22, 2024 · 1 comment

Comments

@eyalroz
Copy link
Owner

eyalroz commented Sep 22, 2024

Our launch config methods for setting block size or grid size in blocks, which take a single value - take the "correct" type: grid::dimension_t or grid::block_dimension_t. That's a problem, since users may provide a value exceeding the type's representation range and get a silent narrowing conversion. Instead, let's take size_t's, and check them ourselves - especially against the type representation limitations, but also against the rest of the limits we're already aware of at that stage.

@eyalroz eyalroz added the task label Sep 22, 2024
@eyalroz eyalroz self-assigned this Sep 22, 2024
eyalroz added a commit that referenced this issue Sep 22, 2024
…unch config builder, and checking them ourselves (using more extensive checks to boot)
eyalroz added a commit that referenced this issue Sep 22, 2024
…unch config builder, and checking them ourselves (using more extensive checks to boot)
eyalroz added a commit that referenced this issue Sep 23, 2024
…unch config builder, and checking them ourselves (using more extensive checks to boot)
@eyalroz
Copy link
Owner Author

eyalroz commented Sep 23, 2024

Windows doesn't like our use of std::limits, seems like :-(

eyalroz added a commit that referenced this issue Sep 23, 2024
…unch config builder, and checking them ourselves (using more extensive checks to boot)
eyalroz added a commit that referenced this issue Sep 23, 2024
…unch config builder, and checking them ourselves (using more extensive checks to boot)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant