summaryrefslogtreecommitdiff
path: root/utests/get_cl_info.cpp
AgeCommit message (Collapse)AuthorFilesLines
2016-08-03only check beignet special test cases on beignetGuo Yejun1-38/+47
with other implementation, do not check the result for the beignet special test cases Signed-off-by: Guo Yejun <yejun.guo@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
2016-08-03utests: only check -dump-spir-binary on beignet implementationGuo Yejun1-2/+4
Signed-off-by: Guo Yejun <yejun.guo@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
2016-08-03utests: fix issue of CL_PROGRAM_BINARY_SIZES queryGuo Yejun1-4/+6
the return type of CL_PROGRAM_BINARY_SIZES query is unsigned char*[], and param_value_size must be >= size of the return type, see spec 1.2 section 5.6.7 (P151) Signed-off-by: Guo Yejun <yejun.guo@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
2016-05-23utest: error handling to avoid null pointer dereference.Luo Xionghu1-0/+6
Signed-off-by: Luo Xionghu <xionghu.luo@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
2015-12-10utest: add utest to generate spir binary from beignet.Luo Xionghu1-0/+99
include case compile_spir_binary and build_spir_binary. Signed-off-by: Luo Xionghu <xionghu.luo@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
2015-10-13utests: Added unit tests to test LLVM and ASM dump generation in a two step ↵Manasi Navare1-0/+95
build process with clCompile and clLink APIs. This patch adds two new tests to the unit tests. It uses the existing framework and data structures and tests the llvm/asm dump generation when these flags (-dump-opt-llvm, -dump-opt-asm) are passed as compile and link options to clCompileProgram and clLinkProgram APIs along with the dump file names. Method added: 1) get_compile_llvm_info() tests LLVM dump generation after clCompileProgram() stage 2) get_link_asm_info() tests Gen ASM dump generation after clLinkProgram() stage Signed-off-by: Manasi Navare <manasi.d.navare@intel.com> Reviewed-by: Ruiling Song <ruiling.song@intel.com>
2015-09-08utests: Added unit tests to test LLVM and ASM dump generation.Sirisha Gandikota1-0/+107
This patch adds 2 new tests to the unit tests. It uses the existing framework and data structures and tests the llvm/asm dump generation when these flags (-dump-opt-llvm, -dump-opt-asm) are passed as build options along with the dump file names. Methods added: 1) get_build_llvm_info() tests LLVM dump generation 2) get_build_asm_info() tests ASM dump generation Signed-off-by: Sirisha Gandikota <sirisha.gandikota@intel.com> Reviewed-by: "Song, Ruiling" <ruiling.song@intel.com>
2015-01-06fix utest build for some old gcc versionGuo Yejun1-20/+20
change the keyword from constexpr to const, update the code for explicit type conversion and std::map's iterator. Signed-off-by: Guo Yejun <yejun.guo@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
2014-06-20Add some API's OpenCL 1.2 parameter support.Yang Rong1-1/+1
Support CL_PROGRAM_KERNEL_NAMES and CL_PROGRAM_NUM_KERNELS in API clGetProgramInfo, and CL_DOUBLE_FP_CONFIG in API clGetDeviceInfo. Also fix a bug of CL_MEM_HOST_PTR in API clGetMemObjectInfo. v2: also fix the utest get_mem_info. Signed-off-by: Yang Rong <rong.r.yang@intel.com> Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
2014-06-20runtime: fix some get image info bugs.Zhigang Gong1-1/+1
According to ocl spec: Return height of the image in pixels. For a 1D image, 1D image buffer and 1D image array object, height = 0. Return depth of the image in pixels. For a 1D image, 1D image buffer, 2D image or 1D and 2D image array object, depth = 0. Signed-off-by: Zhigang Gong <zhigang.gong@intel.com> Reviewed-by: He Junyan <junyan.he@inbox.com>
2014-06-13utests: fix the image desc initilization for get_image_info.Junyan He1-1/+13
As now the clCreateImage implements more check, we need to set more elements to pass all the argument check. Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
2013-11-07Add the clGetMemObjectInfo options for sub-buffer and update the utest caseJunyan He1-2/+23
Signed-off-by: Junyan He <junyan.he@linux.intel.com> Reviewed-by: Homer Hsing <homer.xing@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
2013-07-16Improve the clGetMemObjectInfo API, add more info optionJunyan He1-0/+69
Improve the clGetMemObjectInfo API, add more info option. CL_MEM_ASSOCIATED_MEMOBJECT and CL_MEM_OFFSET need create subbuffer implememted firstly. Attach the test case in get_cl_info.cpp Signed-off-by: Junyan He <junyan.he@linux.intel.com> Reviewed-by: "Xing, Homer" <homer.xing@intel.com>
2013-07-12test API function "clGetImageInfo"Homer Hsing1-0/+45
Signed-off-by: Homer Hsing <homer.xing@intel.com> Reviewed-by: He Junyan <junyan.he@inbox.com>
2013-07-02add test case for clGetContextInfo/clGetKernelInfoRuiling Song1-1/+131
Signed-off-by: Ruiling Song <ruiling.song@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
2013-06-26Add the test case for clGetProgramInfo APIJunyan He1-2/+47
Signed-off-by: Junyan He <junyan.he@linux.intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
2013-06-26Add the test case for clGetCommandQueueInfo APIJunyan He1-0/+319
Because all the get clGetXXXInfo API have similar structure in function type, we will integrate them together, and rename the get_program_info.cpp to get_cl_info.cpp Signed-off-by: Junyan He <junyan.he@linux.intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>