Skip to content

Commit c9fc54a

Browse files
committed
add some env var examples
1 parent 7bc7ce8 commit c9fc54a

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

offload/include/Shared/Debug.h

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,13 +227,24 @@ inline uint32_t getDebugLevel() {
227227
// [integer]|all|<type1>[:<level1>][,<type2>[:<level2>],...]
228228
//
229229
// 0 : Disable all debug messages
230-
// all : Enable all debug messages
230+
// all : Enable all level 1 debug messages
231231
// integer : Set the default level for all messages
232232
// <type> : Enable only messages of the specified type and level (more than one
233233
// can be specified). Components are also supported as
234234
// types.
235235
// <level> : Set the verbosity level for the specified type (default is 1)
236236
//
237+
// Some examples:
238+
// LIBOFFLOAD_DEBUG=1 (Print all messages of level 1 or lower)
239+
// LIBOFFLOAD_DEBUG=5 (Print all messages of level 5 or lower)
240+
// LIBOFFLOAD_DEBUG=init (Print messages of type "init" of level 1 or lower)
241+
// LIBOFFLOAD_DEBUG=init:3,mapping:2 (Print messages of type "init" of level 3
242+
// or lower and messages of type "mapping" of
243+
// level 2 or lower)
244+
// LIBOFFLOAD_DEBUG=omptarget:4, init (Print messages from component "omptarget" of
245+
// level 4 or lower and messages of type
246+
// "init" of level 1 or lower)
247+
//
237248
// For very specific cases where more control is needed, use OFFLOAD_DEBUG_RAW
238249
// or OFFLOAD_DEBUG_BASE. See below for details.
239250

0 commit comments

Comments
 (0)