2016-09-21 09:49:58 -0600 | asked a question | Gpu API call <misaligned adress> Hi erverybody, I have a little question, which I hope you can help me with: I just started working with Cuda over OpenCV. As a part of my algorithm I need to calculate the Histogram of a certain region around each pixel. So, I upload my image (1600*1600) to the gpu memory via Then, for every Pixel, that is far away from the border to have enough space around him, I call: This works fine for the first pixel, but crashes for the second pixel, saying:
Now, I kind of understand, that the adress of every object has to be a multiple of 8, but I dont know how to make sure of that. Can someone explain to me why the error occurses and how I can fix it? |