cuda-api-wrappers icon indicating copy to clipboard operation
cuda-api-wrappers copied to clipboard

Take more launch-config-related sizes as size_t

Open eyalroz opened this issue 1 year ago • 1 comments

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 avatar Sep 22 '24 22:09 eyalroz