qbatch icon indicating copy to clipboard operation
qbatch copied to clipboard

Default chunk_size and cores to ppj

Open pipitone opened this issue 8 years ago • 6 comments

Back in issue #49 we discussed having chunk size defaulting to the ppj, but we lost track of that issue so I'm filing this.

I'm thinking it the logic should be: unless overridden in the environment or command-line, -c and -j both default to --ppj. That way, you default to running as many commands in parallel in a job as you have processors allocated, and the user only needs to change one option, --ppj, if they want to scale that up or down.

pipitone avatar Apr 12 '16 20:04 pipitone

Er, to be clear, setting --ppj on the command line should adjust -j and -c unless they are also set. This isn't the case right now.

pipitone avatar Apr 12 '16 20:04 pipitone

Yes, definitely agree.

Sidenote: do we handle infinite chunk size yet? I think we said if chunks are "0" we allow arbitrarily large chunks?

gdevenyi avatar Apr 12 '16 20:04 gdevenyi

Gabe, can you have a look at this fix and let me know what you think.

pipitone avatar Apr 21 '16 02:04 pipitone

This fix up looks okay to me, other than to generalize the default class a bit further if possible.

gdevenyi avatar Apr 21 '16 14:04 gdevenyi

We could generalize but then there might be too much metaprogramming black magic. I'll have a think about it this evening.

On Apr 21, 2016, at 10:35 AM, Gabriel A. Devenyi [email protected] wrote:

This fix up looks okay to me, other than to generalize the default class a bit further if possible.

— You are receiving this because you were assigned. Reply to this email directly or view it on GitHub

pipitone avatar Apr 21 '16 15:04 pipitone

Lets handle this via #85

gdevenyi avatar May 10 '16 15:05 gdevenyi