common-workflow-language / common-workflow-language

Repository for the CWL standards. Use https://cwl.discourse.group/ for support 😊

Home Page:https://www.commonwl.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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" ...

@mr-c yes, this should def be an integer.