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
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
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/
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
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
"__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
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
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
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