Skip to content

Commit 69820ab

Browse files
Log created image cl_mem objects in api calls
Change-Id: Ic304b5971ddb93057afa47a5205e11e0110b037e
1 parent b9310af commit 69820ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

runtime/api/api.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -836,6 +836,7 @@ cl_mem CL_API_CALL clCreateImage2D(cl_context context,
836836
if (errcodeRet) {
837837
*errcodeRet = retVal;
838838
}
839+
DBG_LOG_INPUTS("image 2D", image2D);
839840
return image2D;
840841
}
841842

@@ -882,6 +883,7 @@ cl_mem CL_API_CALL clCreateImage3D(cl_context context,
882883
if (errcodeRet) {
883884
*errcodeRet = retVal;
884885
}
886+
DBG_LOG_INPUTS("image 3D", image3D);
885887
return image3D;
886888
}
887889

0 commit comments

Comments
 (0)