summaryrefslogtreecommitdiff
path: root/utests/get_cl_info.cpp
Commit message (Collapse)AuthorAgeFilesLines
* only check beignet special test cases on beignetGuo Yejun2016-08-031-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>
* utests: only check -dump-spir-binary on beignet implementationGuo Yejun2016-08-031-2/+4
| | | | | Signed-off-by: Guo Yejun <yejun.guo@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* utests: fix issue of CL_PROGRAM_BINARY_SIZES queryGuo Yejun2016-08-031-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>
* utest: error handling to avoid null pointer dereference.Luo Xionghu2016-05-231-0/+6
| | | | | Signed-off-by: Luo Xionghu <xionghu.luo@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* utest: add utest to generate spir binary from beignet.Luo Xionghu2015-12-101-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>
* utests: Added unit tests to test LLVM and ASM dump generation in a two step ↵Manasi Navare2015-10-131-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>
* utests: Added unit tests to test LLVM and ASM dump generation.Sirisha Gandikota2015-09-081-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>
* fix utest build for some old gcc versionGuo Yejun2015-01-061-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>
* Add some API's OpenCL 1.2 parameter support.Yang Rong2014-06-201-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>
* runtime: fix some get image info bugs.Zhigang Gong2014-06-201-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>
* utests: fix the image desc initilization for get_image_info.Junyan He2014-06-131-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>
* Add the clGetMemObjectInfo options for sub-buffer and update the utest caseJunyan He2013-11-071-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>
* Improve the clGetMemObjectInfo API, add more info optionJunyan He2013-07-161-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>
* test API function "clGetImageInfo"Homer Hsing2013-07-121-0/+45
| | | | | Signed-off-by: Homer Hsing <homer.xing@intel.com> Reviewed-by: He Junyan <junyan.he@inbox.com>
* add test case for clGetContextInfo/clGetKernelInfoRuiling Song2013-07-021-1/+131
| | | | | Signed-off-by: Ruiling Song <ruiling.song@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
* Add the test case for clGetProgramInfo APIJunyan He2013-06-261-2/+47
| | | | | Signed-off-by: Junyan He <junyan.he@linux.intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
* Add the test case for clGetCommandQueueInfo APIJunyan He2013-06-261-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>