Skip to content

Commit

Permalink
add rusage
Browse files Browse the repository at this point in the history
  • Loading branch information
hpratt committed Oct 21, 2023
1 parent b482bbb commit 21ccf21
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 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.7"
version = "0.14.8"

repositories {
maven { setUrl("https://dl.bintray.com/kotlin/kotlin-eap") }
Expand Down
4 changes: 3 additions & 1 deletion src/main/kotlin/krews/config/BsubConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,7 @@ data class BsubTaskConfig(
// SBatch partition to use.
val partition: String? = null,
// Additional bsub arguments
val sbatchArgs: Map<String, String>? = null
val sbatchArgs: Map<String, String>? = null,
// Additional rusage parameters
val rUsage: String? = null
)
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 @@ -81,7 +81,7 @@ class BsubExecutor(private val workflowConfig: WorkflowConfig) : LocallyDirected
appendBsubParam(bsubScript, "J", bsubWorkflowJobName)
appendBsubParam(bsubScript, "o", logsPath.resolve("out.txt"))
appendBsubParam(bsubScript, "e", logsPath.resolve("err.txt"))
appendBsubParam(bsubScript, "M", mem)
appendBsubParam(bsubScript, "R", taskConfig.bsub?.rUsage)
appendBsubParam(bsubScript, "n", cpus)
appendBsubParam(bsubScript, "W", time)
appendBsubParam(bsubScript, "q", taskConfig.bsub?.partition)
Expand Down

0 comments on commit 21ccf21

Please sign in to comment.