I am trying to use the 1D texture memory to bind it to some device memory location,
but experiencing the following error.
texture<float, 1> tex_scratch;
cudaMalloc(&d_scratch, sizeof(float)*m); Where m could be any positive value > 1.
When I use cudaBindTexture(NULL, tex_scratch, d_scratch), it works fine.
But, if I try to bind the texture memory with some offset(n) in the
d_scratch device memory (cudaBindTexture(NULL, tex_scratch, (d_scratch + n)); where n >1 and n < m), then,
it gives the error “invalid argument”.
Does the texture memory require some boundary alignment to be met with the device memory location to be able
to bind to it properly?