## Keyboard shortcuts

Press `←` or `→` to navigate between chapters

Press `S` or `/` to search in the book

Press `?` to show this help

Press `Esc` to hide this help

# Error check

This function performs error CUDA kernels, printing out an error message with file and line number if error occurs. It function also waits until the kernel has finished before continuing with the program.

    void kernel_error_check(cudaStream_t stream, const char* file, int line)

#### `stream`

- CUDA stream.

#### `file`

- File name of source file.

#### `line`

- Line number.