PTX ISA v9.4

9.7.21.4. Miscellaneous Instructions: trap

trap

Perform trap operation.

Syntax

ptx
trap;

Description

Abort execution and generate an interrupt to the host CPU.

PTX ISA Notes

Introduced in PTX ISA version 1.0.

Target ISA Notes

Supported on all target architectures.

Examples

ptx
    trap;
@p  trap;
esc
Type to search across all documentation