Proposal: Fractional CPU
opened this issue · comments
Allow coresMin
coresMax
to have fractional values (long
-> float
).
This is very useful when packing/scheduling jobs that are I/O bound and the OS can actually fit several of these onto one CPU. Currently there is no way to indicate these types of processes.
@kaushik-work Cool idea. If implemented, i suggest that $(runtime.cores)
is still a long
, rounded down to no less than 1.
@mr-c ah interesting twist. What is $(runtime.cores)
typically used for? Also, in the intended usage, I wonder if any float value greater than 1 is meaningful. I guess one could calibrate the tool's usage to say, "I can run 2 of these in parallel on 5 CPUs" ...
@kaushik-work $(runtime.cores)
is often passed to tools to set the number of threads
https://github.com/search?l=Common+Workflow+Language&p=2&q=%24%28runtime.cores%29&type=Code
@mr-c yes, this should def be an integer.