Skip to content

Commit

Permalink
loadBalance on loop tasks entry to address #76 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
mratsim committed Dec 29, 2019
1 parent 902e996 commit f1d734a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions weave/parallel_for.nim
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ template parallelForWrapper(
## Loop prologue, epilogue,
## remoteAccum, resultTy and returnStmt
## are unused
loadBalance(Weave)

block:
let this = myTask()
Expand Down
1 change: 1 addition & 0 deletions weave/parallel_for_staged.nim
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ template parallelStagedWrapper(
## Also poll steal requests in-between iterations
##
## remoteAccum and resultFlowvarType are unused
loadBalance(Weave)

prologue

Expand Down
1 change: 1 addition & 0 deletions weave/parallel_reduce.nim
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ template parallelReduceWrapper(
## To be called within a loop task
## Gets the loop bounds and iterate the over them
## Also poll steal requests in-between iterations
loadBalance(Weave)

prologue

Expand Down

0 comments on commit f1d734a

Please sign in to comment.