Comments (7)
Change default behaviour. Will be live after the next core update.
export OPENBLAS_NUM_THREADS=12 && python -c 'import pygimli as pg; print(pg.core.threadCount())'
12
unset OPENBLAS_NUM_THREADS && python -c 'import pygimli as pg; print(pg.core.threadCount())'
16
from gimli.
We maybe could change this that he only sets this environment variable, if its not already specified by the user?
from gimli.
This circumvents the issue (mostly):
import pygimli as pg
pg.setThreadCount(1)
but still, I would not expect an import to mess with my variables.
from gimli.
For conveniance reasons, the core extension of pygimli sets OPENBLAS_NUM_THREADS
to number of cpu -2 right on initializing. You can change it back after importing pygimli with pg.setThreadCount(1)
from gimli.
I see. But when the number of CPU is 256 on a shared cluster, that is a very inconvenient default IMHO.
I would prefer what you say afterwards. IF there is a user set env variable, it should be respected.
from gimli.
And maybe also a MAX (no need to set the nthread to 254).
from gimli.
Great, like it, thanks for the quick turnaround! 8 or 16 was exactly what our HPC expert here also suggested as maximum, as openblas won't be much efficient beyond that number.
from gimli.
Related Issues (20)
- Plot Inversion Result from Another Software use Pygimli HOT 2
- fitReciprocalErrorModel IP data HOT 7
- Seeking Help with 3D Magnetic Inversion HOT 2
- Question about geometric factor for an ERT survey with submerged and terrestrial electrodes HOT 3
- ERTManager.invert() --> error: malloc(): unsorted double linked list corrupted HOT 3
- Failure to install on mac HOT 6
- Wrong coordinates in tutorial notebook HOT 4
- 3d geometry with topography and fixed thin layer HOT 5
- pg.interpolate() giving error with regionwise regularization HOT 6
- Discussion regarding `errorVals`-`absoluteError`-`relativeError` HOT 4
- Petrophysical joint inversion: smooth the output result HOT 3
- Running pyGIMLi on GHA fails to import HOT 3
- Can the gimli module perform joint HVSR-Dispersion Curve inversion? HOT 1
- The resistivity values ββare inverted after inversion with dipole-dipole array HOT 8
- Matplotlib version >3.8.4 causes failure to load module HOT 1
- colab and /tmp HOT 3
- Marker in the Model is not readable in the final result HOT 2
- Coupled DC-Magnetic Inversion HOT 3
- Problem with abortion criteria in ERT data inversion
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 gimli.