aws-samples/hpc-cost-simulator

[BUG] LSF parser setting number of hosts for a job incorrectly

Closed this issue · 0 comments

Describe the bug
The parser is setting the number of hosts to numExHosts.
This is not what that field means. It is a list of the hosts that were scheduled to give the number of requested cores.
This is resulting in squaring the number of cores and thus the costs for jobs that request more than one core.

The counts in summary.csv are also affected and incorrect.

Expected behavior
As far as I can tell, the number of hosts should always be one.
When looking up an instance type, the number of hosts may be incremented if one doesn't exist that provides the requested number of cores.

Repository Version

1e290b7