enable instrumentation when available

use of instrumentation will be enabled:
- runtime capability set to True
- static library available during compilation
- device reports capability

Change-Id: I43286ebf1135f3a2ec6af924e27ece03042ac0ca
This commit is contained in:
Artur Harasimiuk
2018-02-21 13:02:19 +01:00
committed by sys_ocldev
parent ed5e2c2da8
commit 63732513bb
3 changed files with 4 additions and 1 deletions

View File

@ -23,6 +23,7 @@
#include "instrumentation.h"
namespace OCLRT {
const bool haveInstrumentation = false;
bool instrAutoSamplingStart(
InstrEscCbData cbData,

View File

@ -46,6 +46,8 @@ constexpr unsigned int INSTR_PM_REGS_CFG_INVALID = 0;
constexpr unsigned int INSTR_READ_REGS_CFG_TAG = 0xFFFFFFFE;
constexpr unsigned int INSTR_MAX_READ_REGS = 16;
extern const bool haveInstrumentation;
typedef enum {
INSTR_AS_MODE_OFF,
INSTR_AS_MODE_EVENT,