[Beignet] [PATCH] fix build issue when HAS_BO_SET_SOFTPIN is false
Guo, Yejun
yejun.guo at intel.com
Fri Nov 25 07:49:13 UTC 2016
Signed-off-by: Guo, Yejun <yejun.guo at intel.com>
---
src/cl_mem.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/cl_mem.c b/src/cl_mem.c
index 2b783b9..6a4729d 100644
--- a/src/cl_mem.c
+++ b/src/cl_mem.c
@@ -801,9 +801,10 @@ void* cl_mem_svm_allocate(cl_context ctx, cl_svm_mem_flags flags,
/* Append the svm in the context buffer list */
cl_context_add_mem(ctx, mem);
-#endif
-
return ptr;
+#else
+ return NULL;
+#endif
}
void
--
1.9.1
More information about the Beignet
mailing list