summaryrefslogtreecommitdiff
path: root/utests/load_program_from_spir.cpp
Commit message (Collapse)AuthorAgeFilesLines
* libocl: Refine return type of workitem built-in functionsPan Xiuli2016-11-081-1/+4
| | | | | | | Add compiler_ceil64.spir for load_program_from_spir utest. Signed-off-by: Pan Xiuli <xiuli.pan@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* utest: error handling to avoid null pointer dereference.Luo Xionghu2016-05-231-0/+4
| | | | | Signed-off-by: Luo Xionghu <xionghu.luo@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* Utest: Fix utest memleaksPan Xiuli2016-05-181-0/+2
| | | | | | | Free all memory allocated and release all cl objects. Signed-off-by: Pan Xiuli <xiuli.pan@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* fix utest bug.Luo Xionghu2015-07-141-1/+1
| | | | | | | should query and use extension info by same API clGetPlatformInfo. Signed-off-by: Luo Xionghu <xionghu.luo@intel.com> Reviewed-by: "Yang, Rong R" <rong.r.yang@intel.com>
* simple return if spir extension not supported.Luo Xionghu2015-03-131-1/+1
| | | | | Signed-off-by: Luo Xionghu <xionghu.luo@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
* add utest for load spir binary.Luo Xionghu2015-03-091-0/+90
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. v2: add missing load_program_from_spir.cpp file. Signed-off-by: Luo Xionghu <xionghu.luo@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>