We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3db626 commit 7b8c72eCopy full SHA for 7b8c72e
1 file changed
plugins/nf-k8s/src/main/nextflow/k8s/model/PodSpecBuilder.groovy
@@ -683,10 +683,9 @@ class PodSpecBuilder {
683
// Default to standard NVIDIA GPU if left entirely blank.
684
def type = accelerator.type?.toLowerCase() ?: 'nvidia.com'
685
686
- if (type.contains('/')) {
+ if ( type.contains('/') )
687
// Assume the user has fully specified the resource type.
688
return type
689
- }
690
691
// Map common vendor shorthands to their standard K8s Extended Resource strings.
692
if (type =~ /\b(nvidia|tesla|ampere|h100|a100)\b/) return 'nvidia.com/gpu'
0 commit comments