Comments (10)
Hi @Ovec8hkin, NumPy and scipy with open-blas binding could usually take advantage of multiple cores on local laptop, which is installed by default using conda or macports. In my case, the ifgram_inversion.py use ~%400 of CPU. Therefore, I don't see a significant gain from parallel locally and believe this should be a low priority for now.
from mintpy.
Hello @2gotgrossman @yunjunz ,
I have a question related with dask enabling on local systems.
I enabled dask parallelization in my template and ran into some problems in ifgram inversion.
First I needed to add cores and memory to line 1131 in ifgram_inversion.py
cluster = LSFCluster(walltime=inps.walltime, python=python_executable_location,cores=1,memory='5 GB')
but after that dask tried to create and use LSF jobs (which is expected with use of LSFCluster). I was wondering if there is a dask for local option which hasn't been implemented yet?
from mintpy.
Hi @ehavazli, I don't have an answer to your question. @2gotgrossman is more suitable to answer it but he won't be at work anytime soon. All I know is that PBS scheduler can be easily added, not sure about all the other options.
from mintpy.
from mintpy.
I am running a test case on my laptop with the following options in my template:
## Parallel processing with Dask for HPC
mintpy.networkInversion.parallel = yes #[yes / no], auto for no, parallel processing using dask
mintpy.networkInversion.numWorker = 4 #[int > 0], auto for 40, number of works for dask cluster to use
mintpy.networkInversion.walltime = 03:00 #[HH:MM], auto for 00:40, walltime for dask workers
when I run smallbaselineApp.py I receive the error below:
split 13372 lines into 4 patches for processing
with each patch up to 4000 lines
reference pixel in y/x: (10651, 3739) from dataset: unwrapPhase
Traceback (most recent call last):
File "/Users/havazli/MintPy/mintpy/smallbaselineApp.py", line 1067, in <module>
main()
File "/Users/havazli/MintPy/mintpy/smallbaselineApp.py", line 1057, in main
app.run(steps=inps.runSteps, plot=inps.plot)
File "/Users/havazli/MintPy/mintpy/smallbaselineApp.py", line 1001, in run
self.run_network_inversion(sname)
File "/Users/havazli/MintPy/mintpy/smallbaselineApp.py", line 508, in run_network_inversion
mintpy.ifgram_inversion.main(scp_args.split())
File "/Users/havazli/MintPy/mintpy/ifgram_inversion.py", line 1258, in main
ifgram_inversion(inps.ifgramStackFile, inps)
File "/Users/havazli/MintPy/mintpy/ifgram_inversion.py", line 1131, in ifgram_inversion
cluster = LSFCluster(walltime=inps.walltime, python=python_executable_location)
File "/Users/havazli/miniconda3/envs/ts/lib/python3.7/site-packages/dask_jobqueue/lsf.py", line 89, in __init__
super(LSFCluster, self).__init__(config_name=config_name, **kwargs)
File "/Users/havazli/miniconda3/envs/ts/lib/python3.7/site-packages/dask_jobqueue/core.py", line 231, in __init__
"You must specify how many cores to use per job like ``cores=8``"
ValueError: You must specify how many cores to use per job like ``cores=8``
Did you run into this problem before or am I doing something wrong? I would like to activate dask on my local machine (MacOS) right now and don't have a PBS system.
from mintpy.
from mintpy.
@ehavazli This is old now, but I have been working on Dask for a bit and have been updating MintPy so as to be more flexible in how it performs its parallel computations. Are you still encountering this problem? I can take a look into how to make MintPy run in parallel locally, as that would be a useful default option for a lot of people that don't have access to an HPC cluster.
from mintpy.
from mintpy.
Hi @falkamelung, to followup on the main topic of this issue, is it still current?
from mintpy.
part of this is discussed in a new issue
from mintpy.
Related Issues (20)
- tropo_gacos: can not convert NaN to integer HOT 4
- prep_isce.py KeyError HOT 2
- FileNotFoundError: [Errno 2] No such file or directory: '' (*.slc.full from isce2 is missing) HOT 1
- UTM conversion raise OutOfRangeError in `prep_hyp3.py` HOT 3
- Change Mix, Max Range of Colorbar HOT 1
- How to get full resolution result of geo_velocity.h5? HOT 1
- Load data error in opensarlab mintpy timeseries notebook HOT 2
- TypeError: Object dtype dtype('O') HOT 2
- when load GAMMA format unw file, load_data report a error HOT 4
- Index Out Of Range during correct_troposphere step HOT 1
- Release new version of MintPy to support HyP3 Burst InSAR products HOT 4
- AriaTS_setup HOT 2
- Subset HyP3 datasets and create horz and vert displacement on Jupyter notebook HOT 1
- An error occurred using GACOS data in mintpy HOT 2
- Deprecated numpy.float usage in smallbaselineApp.py breaks with numpy > 1.24.0 HOT 2
- The meaning of numTriNonzeroIntAmbiguity.h5 HOT 1
- output save_gbis.py issue HOT 1
- hyp3 + mintpy: Error in Second Step (Modify Network) HOT 1
- metadata inconsistency for UTM coordinates HOT 4
- `hyp3`: more metadata for `HDF-EOS5` support HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mintpy.