need to check what local size should be. for example, rank0: 6, rank1: 5, rank2: 5. maybe you can change the global size to 5 so that all local sizes are 5.