[Beignet] [PATCH 2/2] add utest for load spir binary.
xionghu.luo at intel.com
xionghu.luo at intel.com
Fri Feb 27 21:53:05 PST 2015
From: Luo Xionghu <xionghu.luo at intel.com>
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-kernel-arg-info is required,
and option -fno-builtin is required to avoid warning.
Signed-off-by: Luo Xionghu <xionghu.luo at intel.com>
---
kernels/compiler_ceil32.spir | Bin 0 -> 1732 bytes
utests/CMakeLists.txt | 1 +
2 files changed, 1 insertion(+)
create mode 100644 kernels/compiler_ceil32.spir
diff --git a/kernels/compiler_ceil32.spir b/kernels/compiler_ceil32.spir
new file mode 100644
index 0000000000000000000000000000000000000000..ee6483476568e76f3765622cf8fd8a84a81e5d2a
GIT binary patch
literal 1732
zcmY*Ze at qis9Dmo=dzF at VhjdcL^}GWl{DJdCN2oy7a_Dd|OF{o|Kav$Q4cW$a6f6{z
z?Mkc199ya(3rm)zm*_$kvoJ#zvY6NcGX#k?E-{W6(*~$N=Aa6iZP~Byq0{V=d*65O
zec$Ik?|na?*C;1$igtv)r4X|93&?~J+5j&Om!0%ZTlUawwfhtmwQpW$E#@ts98}p|
zrp8mY#wc6usI at xx<W)D7H|NE~vZ+?pUMvR6 at wBzz;7EMLb1?^ysKtrU5X6!}0d0)W
zd90?<_oPoV|G<MirPp;X+s4l!enIChimt5A%_X?B?wSa5sLP6j!&(4YdwR7R35Tp&
zuu`j0wVr0&6W0PUt)>zOo3$XC6}jte{0t at B$hhVN*Nr5X)$?a5el89;e2S7Z#jk}b
zv8rf2?dBdU?in@!d)p&HEAI2)1UC^jeyt{5H}!mA0-ski+zmZH8|Ek4xNDT~q@(Aj
zz5LBEKhwtD&bSuz{3)HEO>#3{e$LNd^=_J>5 at vP8z*i(K&~ENhwVHNKiR12P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UKN`B$0b*`sv}UNSo2_%6kd&C`I0nkp)QbF#AkUZlh*J
zP_yk;m7B_NhaFVIfLt4$9Bfo^s26t)ciJD{5#a6Z_C|gp>AI|QhoyCEX_1mybHlXU
zFlcU=?H%k^@KGpRv!(!D#cUKnz<}K;Ae0BOLj8053+#030d at 7t!w&YR52{{8RWDVS
z(<v)i5o`s2nZi|&hS~&#To4N_-YOQNA+G&p2$j)OESKyx75Jpx_5rcE|Gp*S9JEHM
zgd*4==W`XcSp3t<Ye`{Of3ZEX<L5>ZU25Ir@$T3cEtXA91*$lCsKf+=CTiPbzrR6?
PvG47>gf#&JhVlFhihNjp
literal 0
HcmV?d00001
diff --git a/utests/CMakeLists.txt b/utests/CMakeLists.txt
index eaba27d..06baa68 100644
--- a/utests/CMakeLists.txt
+++ b/utests/CMakeLists.txt
@@ -192,6 +192,7 @@ set (utests_sources
compiler_time_stamp.cpp
compiler_double_precision.cpp
load_program_from_gen_bin.cpp
+ load_program_from_spir.cpp
get_arg_info.cpp
profiling_exec.cpp
enqueue_copy_buf.cpp
--
1.9.1
More information about the Beignet
mailing list