View Full Version : havin error code -38 in opencl ?
i am having error code -38 when i print err or status of clEnqueueReadBuffer (.....)
pls help what does it mean?
i have solved the problem by writing NULL in destination array in which i am storing the value of addition of two source arrays value,i am posting the code but pls help me to tell the reason why it has happened when change it to NULL
//For addition c[i]=a[i]+b[i];
cl_mem d_A,d_B,d_C; //mem object
d_A =clCreateBuffer(context,CL_MEM_READ_ONLY|CL_MEM_CO PY_HOST_PTR,
d_B= clCreateBuffer(context,CL_MEM_READ_ONLY|CL_MEM_COP Y_HOST_PTR,
the above 2 statements are same,but when i do change from "c to NULL" in below statment it works fine
pls tell the reason why it is happening if i write c then error and if NULL it works fine
N*sizeof(float),c,&err);//here is the problem why i cant write c ,as did in above two statement,why i have to put NULL instead of c (which is same is array as a & b)when destination mem object i have to create on gpu...
sorry this statement mis written it contains CL_MEM_WRITE_ONLY
rest is same in above question
11-25-2012, 09:11 AM
Could it be the extra semicolon here:
(after b before c)
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.