Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parallel: divide num_core by num_thread if available #691

Merged
merged 2 commits into from Nov 9, 2021

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
1 participant