-
Notifications
You must be signed in to change notification settings - Fork 38
Feature/csv output 1.6.1 #78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
wdeconinck
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! That will be nice.
Just a small change request in real / integer divisions, just to be certain.
src/fiat/gstats/gstats_print.F90
Outdated
| ! TIMING INFORMATION | ||
| ICALLS = NCALLS(JNUM)/2 | ||
| IF (ICALLS > 1) THEN | ||
| ZSTDDEV = 1000._JPRD*SQRT(MAX((TIMESQSUM(JNUM)-TIMESUM(JNUM)**2/ICALLS)/(ICALLS-1),0.0_JPRD)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ZSTDDEV = 1000._JPRD*SQRT(MAX((TIMESQSUM(JNUM)-TIMESUM(JNUM)**2/ICALLS)/(ICALLS-1),0.0_JPRD)) | |
| ZSTDDEV = 1000._JPRD*SQRT(MAX((TIMESQSUM(JNUM)-TIMESUM(JNUM)**2/REAL(ICALLS,JPRD))/REAL(ICALLS-1,JPRD),0.0_JPRD)) |
|
It would be good to create a small test that creates such file. |
…avoid using CSVLINE
9d30246 to
ea3e217
Compare
- using gstats_setup.intfb.h - correct dimensions for kprcids - correct dimensions and type for avearray - make test work with and without MPI
ea3e217 to
936d8ce
Compare
I added to GSTATS an internal flag LCSV_STATS that is only true for LDETAILED_STATS that prints a csv file with timing and communication information per rank. The motivation is to have the raw recorded data to analyse and plot it more easily via e.g. pandas dataframes.
I will maybe later add some more recorded information to the csv file and also make LCSV_STATS an option to be set externally via the namelist but it is supposed to be always true per default for LDETAILED_STATS.