Comments (1)
To use the function timer add the argument --use_timer=True
to your terminal command. Ex: python input.py --use_timer=True
or python input.py --use_timer=True --mode=numba
.
The timing functionality uses wrappers, located in decorators.py
, to place timing calls before and after a function call. The wrapper must go into objmode()
to use call MPI.Wtime() for any numba-fied function. This places significant overhead on small functions that are called many times.
As jpmorgan98 listed. There are two TODO items:
- The timing calls are not configured for multiple processors. So each processor will record its own times but there is no compilation at the end.
- There is significant discrepancy between the decorator and native runtime reports when in numba mode. See the example outputs below
Below are example outputs from the Slab Absorbium example with N=1e5. The first image is from a pure Python run, notice the discrepancy between the native runtime report and decorator runtime report is 1.0 seconds for a 244 second run.
Here is an output of the same problem in Numba mode. In this case, the discrepancy is 92.8 seconds. The decorator seems to be ignoring compilation time? But I'm not sure how that's possible.
from mcdc.
Related Issues (20)
- `cache` issues HOT 3
- merging `harmonize-integration` with `main`
- Outside GPU libraries for GPU functions HOT 1
- De`object modeing` MC/DC
- Installation issue HOT 2
- Broken examples HOT 1
- Missing/incomplete Documentation HOT 1
- Future documentation improvments HOT 1
- Documentation fails to build starting at #dc54a2b HOT 2
- "A particle is lost" recursive loop
- Numba does not reproduce Python results HOT 1
- Setup.py file has mcdc version as 0.1.0
- Update installation script to match pyproject requirements
- `Seg fault` with `*** Process received signal ***` HOT 4
- GPU compilation fails after PR #198 (next VR) HOT 1
- Updated Documentation (next VR) HOT 1
- Updating examples (next VR)
- Resolving issues related to iQMC HOT 4
- Citation box missing information on web-hosted docpages HOT 4
- Minor warning in a function documentation
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 mcdc.