cwl_utils/testdata/extensions/cuda-requirement_v1_2.cwl
raw| 1 | #!/usr/bin/env cwl-runner |
| 2 | cwlVersion: v1.2 |
| 3 | class: CommandLineTool |
| 4 | $namespaces: |
| 5 | cwltool: "http://commonwl.org/cwltool#" |
| 6 | requirements: |
| 7 | cwltool:CUDARequirement: |
| 8 | cudaVersionMin: "1.0" |
| 9 | cudaComputeCapability: "1.0" |
| 10 | cudaDeviceCountMin: $(inputs.gpus) |
| 11 | inputs: |
| 12 | gpus: |
| 13 | type: int |
| 14 | default: 1 |
| 15 | outputs: [] |
| 16 | baseCommand: "nvidia-smi" |