Don't use more than 1024 threads per block.