Re: [Beignet] [PATCH v2] Use CreateCall instead of CreateCall2.

2015-11-18 Thread Yang, Rong R
Build fail in LLVM3.5.2. > -Original Message- > From: Beignet [mailto:beignet-boun...@lists.freedesktop.org] On Behalf Of > Yan Wang > Sent: Thursday, November 19, 2015 10:41 > To: beignet@lists.freedesktop.org > Cc: Yan Wang > Subject: [Beignet] [PATCH v2] Use CreateCall instead of Create

Re: [Beignet] [PATCH] Fix sizing error for bitfield

2015-11-18 Thread Yang, Rong R
Push, thanks. BTW, please add Signed-off-by next time, it will add automatic when format-patch with option -s. > -Original Message- > From: Beignet [mailto:beignet-boun...@lists.freedesktop.org] On Behalf Of > Song, Ruiling > Sent: Thursday, November 19, 2015 11:12 > To: Giuseppe Bilotta;

Re: [Beignet] [PATCH] Runtime: return the correct error code in cl_event_check_waitlist.

2015-11-18 Thread Luo, Xionghu
LGTM, thanks. Luo Xionghu Best Regards -Original Message- From: Beignet [mailto:beignet-boun...@lists.freedesktop.org] On Behalf Of Yang Rong Sent: Tuesday, November 10, 2015 12:10 PM To: beignet@lists.freedesktop.org Cc: Yang, Rong R Subject: [Beignet] [PATCH] Runtime: return the correc

Re: [Beignet] [PATCH] runtime: silent some error messages.

2015-11-18 Thread Zhigang Gong
use something like DEBUG_PRINT is better. Need to cleanup the whole library to fix this type of things. Thanks, Zhigang Gong On Tue, Nov 17, 2015 at 10:11 AM, Song, Ruiling wrote: > Hi Zhigang, > > Directly remove the output message may be not proper. > The output message is very useful for us

Re: [Beignet] [PATCH] Fix sizing error for bitfield

2015-11-18 Thread Song, Ruiling
> -Original Message- > From: Beignet [mailto:beignet-boun...@lists.freedesktop.org] On Behalf Of > Giuseppe Bilotta > Sent: Thursday, November 19, 2015 3:52 AM > To: beignet@lists.freedesktop.org > Cc: Giuseppe Bilotta > Subject: [Beignet] [PATCH] Fix sizing error for bitfield > > The mer

[Beignet] [PATCH v2] Use CreateCall instead of CreateCall2.

2015-11-18 Thread Yan Wang
Signed-off-by: Yan Wang --- backend/src/llvm/llvm_profiling.cpp | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/src/llvm/llvm_profiling.cpp b/backend/src/llvm/llvm_profiling.cpp index 8c9157c..3fbd00d 100644 --- a/backend/src/llvm/llvm_profiling.cpp +++ b/back

Re: [Beignet] [PATCH] Use CreateCall instead of CreateCall2 because llvm3.7 has removed CreateCall2.

2015-11-18 Thread yan . wang
> > >> -Original Message- >> From: Beignet [mailto:beignet-boun...@lists.freedesktop.org] On Behalf >> Of >> Yan Wang >> Sent: Wednesday, November 18, 2015 6:47 PM >> To: beignet@lists.freedesktop.org >> Cc: Yan Wang >> Subject: [Beignet] [PATCH] Use CreateCall instead of CreateCall2 >> be

[Beignet] [PATCH] Fix sizing error for bitfield

2015-11-18 Thread Giuseppe Bilotta
The mergeable field was define as an uint32_t, but MAX_SRC_NUM is now 40, so we need at least an uint64_t. --- backend/src/backend/gen_insn_selection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/backend/gen_insn_selection.cpp b/backend/src/backend/gen_insn_s

Re: [Beignet] [PATCH] Use CreateCall instead of CreateCall2 because llvm3.7 has removed CreateCall2.

2015-11-18 Thread Song, Ruiling
> -Original Message- > From: Beignet [mailto:beignet-boun...@lists.freedesktop.org] On Behalf Of > Yan Wang > Sent: Wednesday, November 18, 2015 6:47 PM > To: beignet@lists.freedesktop.org > Cc: Yan Wang > Subject: [Beignet] [PATCH] Use CreateCall instead of CreateCall2 because > llvm3.7

[Beignet] [PATCH V2 1/2] make Beignet as intermedia layer of CMRT

2015-11-18 Thread Guo Yejun
CMRT is C for Media Runtime on Intel GPU, see https://github.com/01org/cmrt. There is a request to make Beignet as intermedia layer of CMRT, in other words, application programer write OpenCL APIs to execute the CM kernel on GPU, the following shows the key code, and please refer to the next patch

[Beignet] [PATCH] Use CreateCall instead of CreateCall2 because llvm3.7 has removed CreateCall2.

2015-11-18 Thread Yan Wang
Signed-off-by: Yan Wang --- backend/src/llvm/llvm_profiling.cpp | 18 ++ 1 file changed, 18 insertions(+) diff --git a/backend/src/llvm/llvm_profiling.cpp b/backend/src/llvm/llvm_profiling.cpp index 8c9157c..e548305 100644 --- a/backend/src/llvm/llvm_profiling.cpp +++ b/backend/

[Beignet] [OCL20 PATCH V2] GBE:Add LLVM3.8 support

2015-11-18 Thread Pan Xiuli
LLVM3.8 does not support iterator implicit cast to pointer, so add change type for these uses. And due to the refine of ScalarEvolution, the using namespace llvm::legacy is not enough to tell comilper which PassManager to use, refine the PassManager declaration. Now CallInst::hasStructRetAttr() wil

[Beignet] [PATCH V3 2/5] GBE/DebugInfo: Pass debug info :llvm IR => GEN IR

2015-11-18 Thread Bai Yannan
1. Add a DebugInfo type structure DBGInfo into context class, storing debug information. 2. Add a DebugInfo type structure DBGInfo in Instruction class, storing debug infomation. 3. Pass debug information firstly from llvm IR to Context, then to GEN IR when emiting, if OCL_DEBUGINFO

[Beignet] [PATCH V3 4/5] GBE/DebugInfo: Pass debug info : SEL IR => GenInsn

2015-11-18 Thread Bai Yannan
1. Add a structure DBGInfo in GenEncoder class, storing debug infomation for subsequentlt passing to GenInsn. 2. Add a vector in GenEncoder class, storing debug information corresponding to vector. 3. Pass debug information from SEL IR firstly to Gen Encoder, then add to vector when

[Beignet] [PATCH V3 3/5] GBE/DebugInfo: Pass debug info : GEN IR => SEL IR

2015-11-18 Thread Bai Yannan
1. Add a DebugInfo type structure DBGInfo in Opaqueue class, storing debug infomation in selection for subsequentlt passing to selection IR. 2. Add a DebugInfo type structure DBGInfo in SelectionInstruction class, storing debug infomation. 3. Pass debug information from GEN IR firstly

[Beignet] [PATCH V3 5/5] GBE/DebugInfo: Print line and column NO. with ASM

2015-11-18 Thread Bai Yannan
Print line and column numbers with ASM, if OCL_DEBUGINFO is true. Signed-off-by: Yannan Bai --- backend/src/backend/gen_context.cpp | 7 +++ 1 file changed, 7 insertions(+) diff --git a/backend/src/backend/gen_context.cpp b/backend/src/backend/gen_context.cpp index cd34649..d66d618 100

[Beignet] [PATCH V3 1/5] GBE/DebugInfo: Enable new feature

2015-11-18 Thread Bai Yannan
1. Add a bool env OCL_DEBUGINFO to enable generate debug infomation while compiling cl source, set it false as default value. 2. Define a structure type DebugInfo. Signed-off-by: Yannan Bai --- backend/src/backend/program.cpp | 2 ++ backend/src/backend/program.h | 5 + 2 files ch

Re: [Beignet] [Patch V2] OCL20: Use spir64 as default triple.

2015-11-18 Thread Song, Ruiling
Please hold a little bit. I find many cases failed after apply the patch. This may be caused by instruction selection part not supporting 64bit address well. Thanks! Ruiling > -Original Message- > From: Beignet [mailto:beignet-boun...@lists.freedesktop.org] On Behalf Of > Song, Ruiling >