cuda-api-wrappers
cuda-api-wrappers copied to clipboard
Take more launch-config-related sizes as size_t
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.