textureAlignment

Hi!

What is the meaning of cudaDeviceProb->textureAlignment?
“Alignment requirement for textures” says the reference manual. My value is 256.
But what means that?

Thanks in advance!

Can’t anybody help me!?

Perhaps 256 means, that textures musst have an size of a multiple of 256 bytes, right?

Thanks!

This isn’t really important in typical usage - it means that the starting address of the texture must be a multiple of 256 bytes. If you use cudaMallocArray it does this for you automatically.

Ah, ok!

Thanks!