Difficulty with cudaMemcpy3D

Problem solved, the x dimension of extent needs to be in byte not elements. (school boy error).