[Beignet] [PATCH 2/5] runtime: prog->global_data may get 64bit address
Ruiling Song
ruiling.song at intel.com
Thu Apr 7 06:39:55 UTC 2016
Signed-off-by: Ruiling Song <ruiling.song at intel.com>
---
src/cl_program.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/cl_program.c b/src/cl_program.c
index ebe227d..281525e 100644
--- a/src/cl_program.c
+++ b/src/cl_program.c
@@ -210,6 +210,7 @@ static cl_int get_program_global_data(cl_program prog) {
prog->global_data = cl_buffer_alloc_userptr(bufmgr, "program global data", p, alignedSz, 0);
cl_buffer_set_softpin_offset(prog->global_data, (size_t)p);
+ cl_buffer_set_bo_use_full_range(prog->global_data, 1);
uint32_t reloc_count = interp_program_get_global_reloc_count(prog->opaque);
if (reloc_count > 0) {
--
2.4.1
More information about the Beignet
mailing list