1. Casey Dunn
  2. agalma
Issue #27 resolved

memory resources must be specified as integer

Casey Dunn
repo owner created an issue

Running:

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