[Beignet] [PATCH 5/7] fix bug that missing OCL_PROFILING `define

Bai Yannan yannan.bai at intel.com
Fri Sep 18 02:01:55 PDT 2015


Signed-off-by: Bai Yannan <yannan.bai at intel.com>
---
 backend/src/backend/gen_context.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/backend/src/backend/gen_context.cpp b/backend/src/backend/gen_context.cpp
index 9264cd9..43c0b25 100644
--- a/backend/src/backend/gen_context.cpp
+++ b/backend/src/backend/gen_context.cpp
@@ -91,6 +91,7 @@ namespace gbe
     return i;
   }
 
+#define OCL_PROFILING (bool)(getenv("OCL_PROFILING")[0]-48)
 #define SET_GENINSN_DBGINFO(INSN) 	\
   if(INSN.dbginfo.hasdbginfo)		\
 	  p->setDbginfo(INSN.dbginfo.line,INSN.dbginfo.col);\
-- 
1.9.1



More information about the Beignet mailing list