Skip to content

parallel: divide num_core by num_thread if available#691

Merged
yunjunz merged 2 commits intoinsarlab:mainfrom
yunjunz:dask
Nov 9, 2021
Merged

parallel: divide num_core by num_thread if available#691
yunjunz merged 2 commits intoinsarlab:mainfrom
yunjunz:dask

Conversation

@yunjunz
Copy link
Member

@yunjunz yunjunz commented Nov 9, 2021

Description of proposed changes

Reminders

  • Pass Codacy code review (green)
  • Pass Circle CI / local test (green)
  • If modifying functionality, describe changes to function behavior and arguments in a comment below the function declaration.

+ cluster.format_num_worker(): divide the number of cores by the number of threads if found [for linux only] using lscpu command

+ smallbaselineApp.plot_result(): translate numWorker = all

+ update API hierarchy of cluster.py as it now depends on utils0.py
@yunjunz yunjunz merged commit 92e00ad into insarlab:main Nov 9, 2021
@yunjunz yunjunz deleted the dask branch November 9, 2021 08:41
yunjunz added a commit to yunjunz/MintPy that referenced this pull request Nov 13, 2021
+ ifgram_inversion: use ceil instead of rint to prevent the occurrence of extra small patches.

+ cluster.split_box2sub_boxes:
   - add a min step size constrain
   - trim the final number of boxes, to avoid negative dimension

+ cluster.DaskCluster:
   - set the num of scaled workers to the num of boxes, to avoid unnecessary resource initiation
   - revert "divide num core by num of threads per core" (insarlab#691) as it's not right.
   - translate numWorker = all to 80% of available cores, as it seems to work better on HPC
yunjunz added a commit to yunjunz/MintPy that referenced this pull request Nov 13, 2021
+ ifgram_inversion: use ceil instead of rint to prevent the occurrence of extra small patches.

+ cluster.split_box2sub_boxes:
   - add a min step size constrain
   - trim the final number of boxes, to avoid negative dimension

+ cluster.DaskCluster:
   - set the num of scaled workers to the num of boxes, to avoid unnecessary resource initiation
   - revert "divide num core by num of threads per core" (insarlab#691) as it's not right.
   - translate numWorker = all to 80% of available cores, as it seems to work better on HPC
yunjunz added a commit to yunjunz/MintPy that referenced this pull request Nov 13, 2021
+ cluster.DaskCluster:
   - run(): set the num of scaled workers to the num of boxes, to avoid unnecessary resource initiation
   - format_num_worker(): revert "divide num core by num of threads per core" (insarlab#691) as it's not right.
   - format_num_worker(): support num of workers in percentage, e.g. 80% to use 80% of all cores

+ ifgram_inversion: use ceil instead of rint to prevent the occurrence of extra small patches.

+ cluster.split_box2sub_boxes:
   - add a min step size constrain
   - trim the final number of boxes, to avoid negative dimension
yunjunz added a commit to yunjunz/MintPy that referenced this pull request Nov 13, 2021
+ cluster.DaskCluster:
   - run(): set the num of scaled workers to the num of boxes, to avoid unnecessary resource initiation
   - format_num_worker(): revert "divide num core by num of threads per core" (insarlab#691) as it's not right.
   - format_num_worker(): support num of workers in percentage, e.g. 80% to use 80% of all cores

+ ifgram_inversion: use ceil instead of rint to prevent the occurrence of extra small patches.

+ cluster.split_box2sub_boxes:
   - add a min step size constrain
   - trim the final number of boxes, to avoid negative dimension
yunjunz added a commit to yunjunz/MintPy that referenced this pull request Nov 13, 2021
+ cluster.DaskCluster:
   - run(): set the num of scaled workers to the num of boxes, to avoid unnecessary resource initiation
   - format_num_worker(): revert "divide num core by num of threads per core" (insarlab#691) as it's not right.
   - format_num_worker(): support num of workers in percentage, e.g. 80% to use 80% of all cores

+ ifgram_inversion: use ceil instead of rint to prevent the occurrence of extra small patches.

+ cluster.split_box2sub_boxes:
   - add a min step size constrain
   - trim the final number of boxes, to avoid negative dimension
yunjunz added a commit that referenced this pull request Nov 13, 2021
+ cluster.DaskCluster:
   - run(): set the num of scaled workers to the num of boxes, to avoid unnecessary resource initiation
   - format_num_worker(): revert "divide num core by num of threads per core" (#691) as it's not right.
   - format_num_worker(): support num of workers in percentage, e.g. 80% to use 80% of all cores

+ ifgram_inversion: use ceil instead of rint to prevent the occurrence of extra small patches.

+ cluster.split_box2sub_boxes:
   - add a min step size constrain
   - trim the final number of boxes, to avoid negative dimension
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ifgram_inversion: dask failure with large number of workers plot & save to pic section of smallbaselineApp fails with "numWorker = all"

1 participant