bonissent

3D streams

Discussion created by bonissent on Mar 26, 2008
Latest reply on Jun 25, 2008 by bonissent
3D streams as arrays

I tried to generalize the matrix multiplication from the tutorial from 2D to 3D. I tried to streamWrite a 3D array into an inputStream (mimicking the code from the matrix multiplication), then in the kernel I use the float inputA[][][] notation, and out float result<>, where the result is a 3D stream. Then I thought I could use a float3 as indexof(result).xyz. Overoptimistic?

This does not work (the program simply ends in the kernel) but if I replace the 3D by 2D arrays, it seems to be OK.

Can you confirm that direct access to streams is allowed only for 2D? and if so, what would you suggest if I really want to handle 3D arrays?

Outcomes