Comments (3)
That is a known issue/normal behavior. The first run is "warm up", when the driver does things like kernel compilation for your specific device, caching etc. The numbers in the tutorial are all from the second or later runs.
The "self" portion of the profile is anything that belongs to the outer item, but is not enclosed by any of the inner items. Here is a possible example:
prof.tic("outer");
foo(); // will be recorded as "outer.self"
prof.tic("inner");
bar();
prof.toc("inner");
prof.toc("outer");
from amgcl.
That is a known issue/normal behavior. The first run is "warm up", when the driver does things like kernel compilation for your specific device, caching etc. The numbers in the tutorial are all from the second or later runs.
The "self" portion of the profile is anything that belongs to the outer item, but is not enclosed by any of the inner items. Here is a possible example:
prof.tic("outer"); foo(); // will be recorded as "outer.self" prof.tic("inner"); bar(); prof.toc("inner"); prof.toc("outer");
Thanks for your reply. I have a follow-up question. How to access the total runtime from the profiler? I want to use it as a return value for my method.
from amgcl.
profile.toc()
returns time since the initiating tic
, so you could use that. There is no method to get the total time across all iterations, so you could either accumulate it yourself, or possible make a PR with the functionality.
from amgcl.
Related Issues (20)
- Use of Matrix Market routines to distributed matrix reading across MPI processes HOT 1
- Difference between using make_shared on distributed matrix vs. solver HOT 1
- Errors Compiling Examples with CUDA Backend (Nvidia Geforce GTX 2080 Ti, Cuda 12.0) HOT 6
- Not divisible block size with nullspace vectors HOT 5
- cusparseCreateCsr can not be analyzed when I use cuda as Backend HOT 2
- input GPU data directly into CUDA solver HOT 2
- cuda compute error HOT 2
- Compilation AMGCL problem on AMD architectur with scotch library HOT 2
- ...\boost\preprocessor\control\iif.hpp|25|error: 'BOOST_PP_IIF_0' was not declared in this scope| HOT 11
- Convergence issue with gmres + Eigen backend HOT 1
- blocksystems with different sized blocks HOT 2
- how to use amgcl with gpu HOT 3
- Performance with AMGCL HOT 1
- No Instance of Constructor for cusparse_ilu0 under Single Precision (float32) HOT 5
- Mixed precision for CUDA HOT 2
- MPI rebuild example HOT 5
- profiler tic toc in parallel code HOT 1
- scoped_ticker HOT 1
- How does the AMGCL library run on windows10 HOT 1
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 amgcl.