Utility Routines#
ISHMEMX_PRINT_MSG_TYPE_T#
An enumeration of different message types.
ISHMEMX_PRINT#
Writes the C string pointed by out to the standard error.
-
void ishmemx_print(const char *out)#
-
void ishmemx_print(const char *out, ishmemx_print_msg_type_t msg_type)#
-
void ishmemx_print(const char *file, long int line, const char *func, const char *out, ishmemx_print_msg_type_t msg_type)#
- Parameters:
out – C string that contains the text to be written.
msg_type – A message type of type ishmemx_print_msg_type_t.
file – C string that can take __FILE__ as input, representing the full path to the current file.
line – A long int that can take __LINE__ as input for the current line number.
func – C string that can take __FUNC__ as input, representing the current function name.
- Returns:
None.
Callable from the host and device.
Description:
This routine prints the C string to the standard error (stderr), unless
STDOUT message type is passed as msg_type. For user convenience, all
prints include the file, line number, function name, PE ID, and message type,
when ISHMEM_ENABLE_VERBOSE_PRINT
environment variable is used. For
DEBUG messages, in addition to the msg_type, user should also enable
ISHMEM_DEBUG
.