A kernel launch starts a GPU function across many threads. For example, <<<1, n>>> starts one block with n threads; each thread runs the same code and can handle a different data element. section 2.24
Keep these launch details in mind:
- Check each thread’s index against the data size to prevent out-of-bounds access. A block cannot exceed 1,024 threads; exceeding that limit makes the launch fail and leaves the data unchanged. section 3.16
- Launches return before the GPU finishes. Synchronize before using results, and check for launch errors when debugging. section 3.16 section 2.24

