3D ARRAYS IN CUDA

CAN ANY BODY PLZZ HELP ME HOE TO USE ALLOCATE AND COPY 3D ARRAY IN CUDA …COPY it to device…perform some calculation…nd then copying back to host…plzzz give a complete source code…thnxxxx

What do you mean with a 3D array? It could be an array of float3 or int3?

take any…kk take float3…