Indexing Errors with a large array

–moved to the CUDA Programming and Development forum