Utest: Add utest load spir for spir64

Submitted by Pan Xiuli on April 5, 2016, 3:45 a.m.

Details

Message ID 1459827937-2244-1-git-send-email-xiuli.pan@intel.com
State New
Headers show
Series "Utest: Add utest load spir for spir64" ( rev: 1 ) in Beignet

Not browsing as part of any series.

Commit Message

Pan Xiuli April 5, 2016, 3:45 a.m.
From: Pan Xiuli <xiuli.pan@intel.com>

Create a new spir file for OpenCL2.0 and spir64

Signed-off-by: Pan Xiuli <xiuli.pan@intel.com>
---
 kernels/compiler_ceil64.spir      | Bin 0 -> 2152 bytes
 utests/load_program_from_spir.cpp |   5 ++++-
 2 files changed, 4 insertions(+), 1 deletion(-)
 create mode 100644 kernels/compiler_ceil64.spir

Patch hide | download patch | download mbox

diff --git a/kernels/compiler_ceil64.spir b/kernels/compiler_ceil64.spir
new file mode 100644
index 0000000000000000000000000000000000000000..83578362d514fe6673d65336d4442c62dca7e030
GIT binary patch
literal 2152
zcmZuyeN0=|6~D&D*I@Jf2&l5>4?RO#IdaxMAf+~j$o5N9r|^ffr4=-qVh70B0?1zl
zY*fkSIeB;(%?X)i$|m`h^lM8apfm-IZTMpuBu?gJ)s#|%Z~_+D2t`S{Rm!IB+NeqX
z$dm55_nmvr@0@c#e%D0Jue@9iKp_C&xQN`{)bgk7z5ne0;Tywv;R4dDL;&Cg00;*N
zfI3iy8uVA5F)r{9@$qWiSx!Loe4#+9<P9D7;jb2$&I(Ndyt-T~kTe!on+DC{a)LTI
z_&$(Uo7T)&xU?c^F&_4ZGW7Z{c&dZ^!x8}AMVPV>0iKI483Y9ro%Z3(cj$wLiUpM-
ztCA=EiYsi%hDv_ZuUN9m<9@|0n-aJLuqVPefuKjtcp^-#4|>#$!^|LAOTxYm#!kTb
zoN<<wgScXaElC-baW)6Fno-=0DK=R78e4M3ueix7o}l&iF|}scOER7guFJ>NBAh66
zgOo~+f?nYe%NfPeydoY$uq7#uaw)2a`;}=9$=IzZH1tKFSHL)$^ZE2aFG?xO^oE&Q
zobi&-rG}mk+GB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A@ndNMX@jw<#xL<Bd-F^2?c8Ux@5lal
z<5#mc{2}(#V%58^pQKwgT&Y+3RttySRb0G;x0MBs-y*F`muxdLU5WJDM}PauO!eng
zwZHzXTK9SNrP)2PBd3P1UA*@E@P*WH_v;o8m_+;dCfdguflr>y$WN4W8U`tCAQ3Vl
zp6!FKh(ol)9q7*2h)jsZ6xUh#39>M6M$1y%h6So2#BE6Rh1_=7FMu91W4A-Eo!irg
zsF{(bO0mr_mLbL6r1;J@wr#;`@T6h|@vKS_w<%AMLH!)9Poq1}t)HXobF{Ku-eZOR
z9q^S7#)+hlv4;`u!X7p3`L+<j_WGD(h<qiCGlHH3|K6=_Y-<(!W*#vP_xM7N?&Ybx
zT(-%t?7S;B{y)ML;yWE87bIsA+H;h4kgGqJcnJml?|}Xbu6`mR`s>dado$y-)9wz~
zXJy<H#vNs(*MBVD0^<7?Y%Pr4L3Bo7o2UvxtyqpJ<3{C8m3-N+Tway0WfcG9C{IWZ
zBZ98`4XsD(`Y~ExA?k(2PBqFKdYkPLssV*Z6rN5DWaXF9i-+DT^v<Xh8!E+0OaW{J
zdMA-j8PB*EM}3ZWjualK&GnW1zt~5tcEVVgXfd=|89T2$DXCJQ9^=u0q8>p}Ri}X$
z2Ucy)kB8a^26OV|mKgEsfK){9;{Z<84lf?%S8QAoy_Wu-4IIP{H~t92E7}Im%ZURE
zYi6BcFw7Pa--U#{sq*KD|GD0gB_GO$%D~lMih>0f#QO#k^$Vs0e>M=g67%2x0Rn&y
AIsgCw

literal 0
HcmV?d00001

diff --git a/utests/load_program_from_spir.cpp b/utests/load_program_from_spir.cpp
index 8ea1cd4..a03aa54 100644
--- a/utests/load_program_from_spir.cpp
+++ b/utests/load_program_from_spir.cpp
@@ -31,7 +31,10 @@  static void test_load_program_from_spir(void)
     char *ker_path = NULL;
 
     cl_file_map_t *fm = cl_file_map_new();
-    ker_path = cl_do_kiss_path("compiler_ceil32.spir", device);
+    if(sizeof(size_t) == 8)
+      ker_path = cl_do_kiss_path("compiler_ceil64.spir", device);
+    else
+      ker_path = cl_do_kiss_path("compiler_ceil32.spir", device);
     OCL_ASSERT (cl_file_map_open(fm, ker_path) == CL_FILE_MAP_SUCCESS);
 
     const unsigned char *src = (const unsigned char *)cl_file_map_begin(fm);