Fixes for large local volumes running on Fermi cards the thread index calculation.