Computes kernel launch parameters based on kernel type and dimensions
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(kernel_type_t), | intent(in) | :: | kernel_type |
Type of kernel |
||
| integer(kind=int32), | intent(in) | :: | dims(:) |
Local dimensions to process |
||
| integer(kind=int32), | intent(in) | :: | tile_size |
Size of the tile in shared memory |
||
| integer(kind=int32), | intent(in) | :: | block_rows |
Number of rows in each block |
||
| type(dim3), | intent(out) | :: | blocks |
Number of blocks to launch |
||
| type(dim3), | intent(out) | :: | threads |
Number of threads per block |