I have these large arrays of constants. On the CPU they were originally 3D, but I made them 1D on the GPU.
Their access patterns exhibit 3D spatial locality, but they are only accessed sparsely (each individual slot of the array is only accessed 1-2 times). They are very large and can exceed 200x200x200 floating point numbers. They are constant, but their dimensions are read in from files and and are not known on compile time.
My question is: what optimization is available and effective for this type of data? Also, is there any optimization for data very similar to this, but not constant?