I’m working with voxel volumes and it would be nice to have also a cudaBindTexture3D.
There exist a cudaBindTexture2D call, but the cudaBindTexture3D call is missing.
An alternative would be CUDA arrays but you can’t write them .
Would it be possible to add cudaBindTexture3D to CUDA or make CUDA arrays also writable?
I already considered to write a routine myself to write to CUDA arrays, but for that I need
to know the indexing scheme of CUDA arrays and it might be much work.
If you are asking why do I need such stuff … I have an segementation algorithm for voxel
volumes that access groups elements (19 voxel 3D neighborhood) without a predictable access pattern,
so shared memory is not a good solution for this, but caching would improve the performance.
The new Fermi architecture would be very suited for this algorithm, but we have to wait some time … and
it would be nice to have a solution for the current architecture.
At the moment I’m using normal memory accesses which isn’t cached at all.