memory resources must be specified as integer

Issue #27 resolved
Casey Dunn
repo owner created an issue


export BIOLITE_RESOURCES="threads=2,memory=7G"
agalma test

Results in:

biolite.utils.mem_to_mb: can't convert memory value '7.5' to an integer

Should truncate value or clarify documentation

Comments (3)

  1. Mark Howison

    I think you mean:

    export BIOLITE_RESOURCES="threads=2,memory=7.5G"

    and yes, we should support that case. It wouldn't be that hard to convert the string down to KB, and store that value instead of the string in the config. Then when a wrapper needs the value, it either use the int value of KB or can round up to MB, GB, etc.

  2. Log in to comment