1d texture and memory buffer

I would like to allocate 1 dimentional buffer and use it for writting in one kernel.
And as a 1d texture in the second one?
Is it possible to do that?
Is it possible to use 1d buffer as both 1d buffer and texture at the same time?

I don’t require correctiveness. I know that memory may change and a cache won’t be updated.

I noticed that texture is binded to cudaArray. Is it possible to write to a cudaArray from a gpu kernel?

It is not possible to write directly to cudaArrays.

However, you can bind linear memory as a texture and read it using the tex1Dfetch() function. It is possible to write to this memory at the same time, although as you mention you have to careful about cache consistency.