Skip to content

Commit

Permalink
Merge pull request #430 from ASFHyP3/develop
Browse files Browse the repository at this point in the history
Release v5.7.4
  • Loading branch information
asjohnston-asf authored Jan 5, 2023
2 parents 71f8f95 + f32c5b5 commit 102cd30
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [PEP 440](https://www.python.org/dev/peps/pep-0440/)
and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## [5.7.4]

### Added
- `++omp-num-threads` parameter to the `main()` entrypoint to limit the number of threads used by GAMMA during
multiprocessing.

## [5.7.3]

### Added
Expand Down
4 changes: 4 additions & 0 deletions hyp3_gamma/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,13 @@ def main():
'++process', choices=['rtc', 'insar', 'water_map'], default='rtc',
help='Select the HyP3 entrypoint version to use'
)
parser.add_argument('++omp-num-threads', type=int, help='The number of OpenMP threads to use for parallel regions')
args, unknowns = parser.parse_known_args()
(process_entry_point,) = entry_points(group='console_scripts', name=args.process)

if args.omp_num_threads:
os.environ['OMP_NUM_THREADS'] = str(args.omp_num_threads)

sys.argv = [args.process, *unknowns]
sys.exit(
process_entry_point.load()()
Expand Down

0 comments on commit 102cd30

Please sign in to comment.