Skip to content

Commit

Permalink
fix GPU format
Browse files Browse the repository at this point in the history
  • Loading branch information
hpratt committed Oct 22, 2023
1 parent 283ed15 commit e50effc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ plugins {
}

group = "io.krews"
version = "0.14.11"
version = "0.14.12"

repositories {
maven { setUrl("https://dl.bintray.com/kotlin/kotlin-eap") }
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/krews/executor/bsub/BsubExecutor.kt
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class BsubExecutor(private val workflowConfig: WorkflowConfig) : LocallyDirected

val mem = taskConfig.bsub?.mem ?: taskRunContexts.map { it.memory }.maxBy { it?.bytes ?: -1 }
val cpus = taskConfig.bsub?.cpus ?: taskRunContexts.map { it.cpus }.maxBy { it ?: -1 }
val gpus = taskConfig.bsub?.gpu ? "\"\"" : null
val gpus = if (taskConfig.bsub?.gpu == true) "\"\"" else null

appendBsubParam(bsubScript, "J", bsubWorkflowJobName)
appendBsubParam(bsubScript, "o", logsPath.resolve("out.txt"))
Expand Down

0 comments on commit e50effc

Please sign in to comment.