1 //===--- amdgpu/src/print_tracing.h ------------------------------- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 #ifndef LIBOMPTARGET_PLUGINS_AMGGPU_SRC_PRINT_TRACING_H_INCLUDED
9 #define LIBOMPTARGET_PLUGINS_AMGGPU_SRC_PRINT_TRACING_H_INCLUDED
10 
11 enum PrintTraceControlBits {
12   LAUNCH = 1,          // print a message to stderr for each kernel launch
13   RTL_TIMING = 2,      // Print timing info around each RTL step
14   STARTUP_DETAILS = 4, // Details around loading up kernel
15   RTL_TO_STDOUT = 8    // Redirect RTL tracing to stdout
16 };
17 
18 extern int print_kernel_trace; // set by environment variable
19 
20 #endif
21