Utilities¶
Error Handling and Diagnostics¶
Kokkos provides utility functions for error handling, debugging, and output that work consistently across host and device code.
Terminates the program immediately with an error message. |
|
Aborts the program if the user-specified condition is not |
|
Prints formatted output to the standard output stream. |
Runtime and Device Information¶
Kokkos provides utility functions to query runtime information about the Kokkos execution environment.
Returns the id of the device used by |
|
Returns the number of devices available to Kokkos. |
|
Returns the number of threads used by |
|
Prints the Kokkos compile-time and runtime configuration to an output stream. |