Automatic determination of grain size for efficient parallel processing | Synapse