[Beignet] [PATCH v2 2/2] add utest for load spir binary.

2015-02-27 Thread xionghu . luo
From: Luo Xionghu To generate SPIR binary, please refer to the page https://github.com/KhronosGroup/SPIR. For llvm3.2, the command is "clang -cc1 -emit-llvm-bc -triple spir-unknown-unknown -cl-std=CL1.2 -include opencl_spir.h compiler_ceil.cl -o compiler_ceil32.spir" For llvm3.5, the option -cl-k

Re: [Beignet] [PATCH 2/2] add utest for load spir binary.

2015-02-27 Thread Zhigang Gong
You forgot to commit load_program_from_spir.cpp, right? On Sat, Feb 28, 2015 at 01:53:05PM +0800, xionghu@intel.com wrote: > From: Luo Xionghu > > To generate SPIR binary, please refer to the page > https://github.com/KhronosGroup/SPIR. > For llvm3.2, the command is "clang -cc1 -emit-llvm-bc

Re: [Beignet] [PATCH] GBE: Fix fast-math issue under llvm 3.6.

2015-02-27 Thread Zhigang Gong
LGTM, will push latter, thanks. On Sat, Feb 28, 2015 at 01:44:05PM +0800, Ruiling Song wrote: > "__ocl_math_fastpath_flag" was directly optimized out when compiling libocl > under llvm 3.6 > And set its initialization value after loading libocl. > > Signed-off-by: Ruiling Song > --- > backend/

[Beignet] [PATCH 2/2] add utest for load spir binary.

2015-02-27 Thread xionghu . luo
From: Luo Xionghu To generate SPIR binary, please refer to the page https://github.com/KhronosGroup/SPIR. For llvm3.2, the command is "clang -cc1 -emit-llvm-bc -triple spir-unknown-unknown -cl-std=CL1.2 -include opencl_spir.h compiler_ceil.cl -o compiler_ceil32.spir" For llvm3.5, the option -cl-k

[Beignet] [PATCH 1/2] enable cl_khr_spir extension to build and run from SPIR binary.

2015-02-27 Thread xionghu . luo
From: Luo Xionghu the SPIR are built by clang generating a standard llvm Module file, beignet need insert one byte before the module repesents binary type then parse the module to link. enable cl_khr_spir extension output string; enable the SPIR calling conversion of CallingConv::SPIR_KERNEL; get

[Beignet] [PATCH] GBE: Fix fast-math issue under llvm 3.6.

2015-02-27 Thread Ruiling Song
"__ocl_math_fastpath_flag" was directly optimized out when compiling libocl under llvm 3.6 And set its initialization value after loading libocl. Signed-off-by: Ruiling Song --- backend/src/libocl/tmpl/ocl_math.tmpl.cl |2 +- backend/src/llvm/llvm_bitcode_link.cpp | 10 -- 2 fil

Re: [Beignet] [PATCH] Enable multiarch (32/64-bit co-installation)

2015-02-27 Thread Zhigang Gong
On Fri, Feb 27, 2015 at 08:22:17AM +, Rebecca N. Palmer wrote: > >As to the multi-arch support for beignet, I assume the requirement is from > >running 32-bit binary on a 64-bit system. Right? > Yes. > > >Then the 32bit application will call to ocl-icd to search available icd > >files. > >I n

[Beignet] [PATCH] Build: use -Bsymbolic to fix conflicts with other LLVM users.

2015-02-27 Thread Zhigang Gong
As there may be some other LLVM users such as mesa, and they may link to different LLVM library. To avoid such type of conflicts, we use -Bsymbolic to disable the symbol preemption. This patch should fix the build bug at: https://bugs.freedesktop.org/show_bug.cgi?id=89325 Signed-off-by: Zhigang G

Re: [Beignet] [PATCH] Enable multiarch (32/64-bit co-installation)

2015-02-27 Thread Rebecca N. Palmer
As to the multi-arch support for beignet, I assume the requirement is from running 32-bit binary on a 64-bit system. Right? Yes. Then the 32bit application will call to ocl-icd to search available icd files. I never test it and don't know whether the ocl-icd library will choose the 32bit beigne