Skip to content

Commit

Permalink
Only get inBlockBuffer from data channel if we are not doing our own …
Browse files Browse the repository at this point in the history
…reading
  • Loading branch information
neilflood committed Feb 22, 2024
1 parent 7ab9509 commit 1582b63
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions rios/cmdline/rios_computeworker.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,17 @@ def riosComputeWorker(workerID, dataChan):
controls = dataChan.workerCommonData.get('controls', None)
allInfo = dataChan.workerCommonData.get('allInfo', None)
workinggrid = dataChan.workerCommonData.get('workinggrid', None)
inBlockBuffer = dataChan.inBlockBuffer
outBlockBuffer = dataChan.outBlockBuffer
if not controls.concurrency.computeWorkersRead:
inBlockBuffer = dataChan.inBlockBuffer
else:
inBlockBuffer = None

blockList = dataChan.workerLocalData.get(workerID, None)

rtn = applier.apply_singleCompute(userFunction, infiles, outfiles,
otherArgs, controls, allInfo, workinggrid, blockList, outBlockBuffer,
inBlockBuffer)
inBlockBuffer, workerID)

# Make a pickleable version of the timings
timings = Timers(pairs=rtn.timings.pairs, withlock=False)
Expand Down

0 comments on commit 1582b63

Please sign in to comment.