MDL SDK API nvidia_logo_transpbg.gif Up
mi::base::Message_details Struct Reference

Structured details to log messages. More...

#include <ilogger.h>

Public Member Functions

bool is_device () const
 Checks if this event pertains to a CUDA device or the CPU. More...
 
bool is_tagged (const Uint32 required_tags) const
 Checks if all required_tags are present. More...
 
Message_detailshost (const Uint32 id)
 Named constructor. More...
 
Message_detailsdevice (const Sint32 id)
 Named constructor. More...
 
Message_detailstag (const Uint32 t)
 Named constructor. More...
 
Message_detailstag (const Uint32 t, const Uint32 code)
 Named constructor. More...
 
Message_detailscode (const Uint32 c)
 Named constructor. More...
 

Public Attributes

Uint32 host_id
 The cluster ID of the host on which the message originated. More...
 
Sint32 device_id
 DEVICE_ID_XXX or a CUDA device ID. More...
 
Uint32 tags
 A set of tags. More...
 
Uint32 message_id
 An additional message identifier. More...
 

Detailed Description

Structured details to log messages.

These details may be used to react to certain types of events or for more accurate log filtering without having to parse the log message text. Note that logging code may not always provide a full set of details.

This type uses named constructors (which can be chained) to allow for clearer construction code.