projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83864f0
)
12630: Fix usage of string.Split
author
Peter Amstutz <peter.amstutz@curii.com>
Fri, 7 Jan 2022 23:10:29 +0000
(18:10 -0500)
committer
Peter Amstutz <peter.amstutz@curii.com>
Fri, 7 Jan 2022 23:10:29 +0000
(18:10 -0500)
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>
lib/crunchrun/docker.go
patch
|
blob
|
history
diff --git
a/lib/crunchrun/docker.go
b/lib/crunchrun/docker.go
index ea9d448215cd1f700bce3bb2b675442c3fc6d231..c20f78bb1af0cfb6b318f7e9c519657d5079d1c2 100644
(file)
--- a/
lib/crunchrun/docker.go
+++ b/
lib/crunchrun/docker.go
@@
-112,7
+112,7
@@
func (e *dockerExecutor) config(spec containerSpec) (dockercontainer.Config, doc
// If a resource manager such as slurm or LSF told
// us to select specific devices we need to propagate that.
if strings.HasPrefix(s, "CUDA_VISIBLE_DEVICES=") {
- deviceIds = strings.Split
N
(strings.SplitN(s, "=", 2)[1], ",")
+ deviceIds = strings.Split(strings.SplitN(s, "=", 2)[1], ",")
}
}
deviceCount := spec.CUDADeviceCount