summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYang, Rong R <rong.r.yang@intel.com>2016-11-28 19:32:28 +0800
committerYang Rong <rong.r.yang@intel.com>2016-12-28 17:37:01 +0800
commit365a9346a5d01d43daea6929945b10fcd51e4ea4 (patch)
tree6f9c3200127b1c9c85f0759f131f7c2bf221bb2a /src
parent882e2bcb8b83dc804c89176e7ad315d78103de9e (diff)
Runtime: fix clEnqueueMigrateMemObjects fail.
clEnqueueMigrateMemObjects's parameter may be clBuffer or clImage, so should call CL_OBJECT_IS_MEM. Signed-off-by: Yang Rong <rong.r.yang@intel.com> Reviewed-by: Ruiling Song <ruiling.song@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/cl_api_mem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cl_api_mem.c b/src/cl_api_mem.c
index 09f9a141..1920136b 100644
--- a/src/cl_api_mem.c
+++ b/src/cl_api_mem.c
@@ -1359,7 +1359,7 @@ clEnqueueMigrateMemObjects(cl_command_queue command_queue,
}
for (i = 0; i < num_mem_objects; i++) {
- if (!CL_OBJECT_IS_BUFFER(mem_objects[i])) {
+ if (!CL_OBJECT_IS_MEM(mem_objects[i])) {
err = CL_INVALID_MEM_OBJECT;
break;
}