Function rust_cuda::device::utils::exit

source ·
pub unsafe fn exit() -> !
Available on crate feature device only.
Expand description

Exit the CUDA kernel using the exit instruction.

§Safety

exit quits the kernel early and any mutable data accessible outside this kernel launch (by the host or a subsequent kernel launch) may be in an inconsistent state. Therefore, kernel failure must be communicated back to host and handled in some other manner.

Safely return from the main kernel function instead.