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.