You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here the texture size based on "d_Src" should be "sizeof(fComplex) * DY * DX" because neither the data source passed from "test1()" in "main.cpp" nor the data access in kernel "spPostprocess2D_kernel" has padding.
The text was updated successfully, but these errors were encountered:
In "convolutionFFT2D.cu":
147 extern "C" void spPostprocess2D(void *d_Dst, void *d_Src, uint DY, uint DX,
148 uint padding, int dir) {
...
162 #if (USE_TEXTURE)
163 cudaTextureObject_t texComplex;
164 cudaResourceDesc texRes;
165 memset(&texRes, 0, sizeof(cudaResourceDesc));
166
167 texRes.resType = cudaResourceTypeLinear;
168 texRes.res.linear.devPtr = d_Src;
169 texRes.res.linear.sizeInBytes = sizeof(fComplex) * DY * (DX + padding);
Here the texture size based on "d_Src" should be "sizeof(fComplex) * DY * DX" because neither the data source passed from "test1()" in "main.cpp" nor the data access in kernel "spPostprocess2D_kernel" has padding.
The text was updated successfully, but these errors were encountered: