-
Notifications
You must be signed in to change notification settings - Fork 38
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
Remove gstats_label_ifs to avoid name clash #48
Conversation
Agreed. I believe this file is only there to provide additional labels for the benchmark program that aren't covered by its own labelling routine. |
Yes indeed, but it's not actually called, so not fulfilling that purpose afaict - are there any labels missing from this to the best of your knowledge? |
Good point! And there is no corresponding file in You mean labels missing from gstats_label_ifs.F90? |
Both directions actually, but for the sake of this PR I was wondering if there were labels missing in the driver. |
Oh yes, many!:
And that's probably why someone just copied the routine from the IFS (even if they stopped using it at some point). |
Hope it's fine if I also have a comment here: I might at least have added some gstats labels e.g. in the GPU branches, already back in the early OpenACC version. But wouldn't it make sense to just put the ectrans labels into ectrans, and probably reserve a range for ectrans? |
Perhaps |
But it might then be necessary to call |
I fully agree that libraries should manage their gstats labels - and various callback formats could be envisaged how and when this should happen and where a handshake exchanges valid label ranges and warns if there's an "out-of-bounds" label in the current library. But I would argue this should be a separate PR. |
I agree completely with @lukasm91 Food for thought for future PR. |
Dynamic UIDs can bring confusion further down the line when you post process events as in some cases we do rely on the fact that labels do not change in meaning. Also when we present certain data (e.g., detailed stats including communication and barriers). |
When linking IFS against ectrans, we have a symbol clash and this one takes precedence. Since gstat labels are set-up locally in the benchmark driver, I don't think this file needs to be there in the first place.
Currently confirming this doesn't cause problems on LUMI. Will file the same change for redgreengpu.