Function rust_cuda::device::utils::pretty_print_panic_info

source ยท
pub fn pretty_print_panic_info(
    info: &PanicInfo<'_>,
    allow_dynamic_message: bool,
)
Available on crate feature device only.
Expand description

Helper function to efficiently pretty-print a core::panic::PanicInfo using the vprintf system call.

If allow_dynamic_message is set, alloc::format! is used to print the core::panic::PanicMessage message when core::panic::PanicMessage::as_str returns None. Note that this may pull in a large amount of string formatting and dynamic allocation code. If unset, a default placeholder panic message is printed instead.