So did you check those? It seems like it is related to your readoffsetGPU, readsizeGPU variables, or your ptrout offset calculation. Try putting that calculation into a local variable first and print out the value. Is it what you were expecting? Note that the type of your pointer will matter; when you increment or add something to a pointer the steps are based on the type it points to.
So did you check those? It seems like it is related to your readoffsetGPU, readsizeGPU variables, or your ptrout offset calculation. Try putting that calculation into a local variable first and print out the value. Is it what you were expecting? Note that the type of your pointer will matter; when you increment or add something to a pointer the steps are based on the type it points to.[/QUOTE]
At some risk of sounding like a broken record, you can easily get this information from an Intercept Layer for OpenCL Applications call log: