summaryrefslogtreecommitdiff
path: root/src/cl_gbe_loader.h
diff options
context:
space:
mode:
authorYang Rong <rong.r.yang@intel.com>2015-08-24 11:59:36 +0800
committerYang Rong <rong.r.yang@intel.com>2015-09-18 16:09:55 +0800
commitd6a5dfeb64947ab94933d1a28b77a68e89f60ac5 (patch)
tree3fba1fae4eb019ed3aada499797a2836d1aa75a2 /src/cl_gbe_loader.h
parent711241fc2c3ae3d74d562013ca2a8ba64ab4426d (diff)
Fix piglit clLinkProgram fail.
1. return CL_INVALID_LINKER_OPTIONS when invalid options, using clang to check the options. 2. return CL_INVALID_OPERATION when the binary type is not same. 3. When link fail, will not return CL_LINK_PROGRAM_FAILURE, fix it. 4. Should not delete program in genProgramBuildFromLLVM, the program is new and delete from runtime. Signed-off-by: Yang Rong <rong.r.yang@intel.com> Reviewed-by: Luo, Xionghu <xionghu.luo@intel.com>
Diffstat (limited to 'src/cl_gbe_loader.h')
-rw-r--r--src/cl_gbe_loader.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cl_gbe_loader.h b/src/cl_gbe_loader.h
index 6fa4c988..de91c85f 100644
--- a/src/cl_gbe_loader.h
+++ b/src/cl_gbe_loader.h
@@ -28,6 +28,7 @@ extern gbe_program_new_from_source_cb *compiler_program_new_from_source;
extern gbe_program_compile_from_source_cb *compiler_program_compile_from_source;
extern gbe_program_new_gen_program_cb *compiler_program_new_gen_program;
extern gbe_program_link_program_cb *compiler_program_link_program;
+extern gbe_program_check_opt_cb *compiler_program_check_opt;
extern gbe_program_build_from_llvm_cb *compiler_program_build_from_llvm;
extern gbe_program_new_from_llvm_binary_cb *compiler_program_new_from_llvm_binary;
extern gbe_program_serialize_to_binary_cb *compiler_program_serialize_to_binary;