diff options
| author | Ruiling Song <ruiling.song@intel.com> | 2016-01-19 11:29:06 +0800 |
|---|---|---|
| committer | Yang Rong <rong.r.yang@intel.com> | 2016-11-08 20:38:21 +0800 |
| commit | 295b1cb6d1ac616dd4d9b4b2ef14934b86e3ffbf (patch) | |
| tree | 362d23da596fa3f4b222fdadead7431136b4516a /src/cl_gbe_loader.cpp | |
| parent | 07f879d60a62eb56f99d6e20f4bf363caf64a1ae (diff) | |
| download | beignet-295b1cb6d1ac616dd4d9b4b2ef14934b86e3ffbf.tar.gz | |
GBE: Implement new constant solution for ocl2
Different from ocl 1.2, which gather all constant into one surface.
ocl2 only gather program global/constant into one surface. But
keep other constant passed through kernel argument in separate buffer.
Signed-off-by: Ruiling Song <ruiling.song@intel.com>
Reviewed-by: Yang Rong <rong.r.yang@intel.com>
Diffstat (limited to 'src/cl_gbe_loader.cpp')
| -rw-r--r-- | src/cl_gbe_loader.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cl_gbe_loader.cpp b/src/cl_gbe_loader.cpp index 7555d3fd..3736c86a 100644 --- a/src/cl_gbe_loader.cpp +++ b/src/cl_gbe_loader.cpp @@ -38,6 +38,8 @@ gbe_program_clean_llvm_resource_cb *compiler_program_clean_llvm_resource = NULL; gbe_program_new_from_binary_cb *interp_program_new_from_binary = NULL; gbe_program_get_global_constant_size_cb *interp_program_get_global_constant_size = NULL; gbe_program_get_global_constant_data_cb *interp_program_get_global_constant_data = NULL; +gbe_program_get_global_reloc_count_cb *interp_program_get_global_reloc_count = NULL; +gbe_program_get_global_reloc_table_cb *interp_program_get_global_reloc_table = NULL; gbe_program_delete_cb *interp_program_delete = NULL; gbe_program_get_kernel_num_cb *interp_program_get_kernel_num = NULL; gbe_program_get_kernel_by_name_cb *interp_program_get_kernel_by_name = NULL; @@ -111,6 +113,14 @@ struct GbeLoaderInitializer if (interp_program_get_global_constant_data == NULL) return false; + interp_program_get_global_reloc_count = *(gbe_program_get_global_reloc_count_cb**)dlsym(dlhInterp, "gbe_program_get_global_reloc_count"); + if (interp_program_get_global_reloc_count == NULL) + return false; + + interp_program_get_global_reloc_table = *(gbe_program_get_global_reloc_table_cb**)dlsym(dlhInterp, "gbe_program_get_global_reloc_table"); + if (interp_program_get_global_reloc_table == NULL) + return false; + interp_program_delete = *(gbe_program_delete_cb**)dlsym(dlhInterp, "gbe_program_delete"); if (interp_program_delete == NULL) return false; |
