Closed rybchuk closed 1 week ago
I doubt print statements of this sort make a difference to performance. You can comment out the warning and check. If you find this too verbose and others think so to, feel free to make a PR and move the warning to the init. I am happy to help you accomplish this if you would like.
Yeah fortunately/unfortunately, I removed the print statements and I'm still seeing similar performance. Once in a while, my WallClockTime of a single timestep goes up by a factor of 10x for some reason. I suspect this is a hardware issue.
I'm focused on a workaround for this 10x behavior, and the print statements aren't diminishing the performance, so I'll close out this issue. If others also request that the warning be moved to the initialization part of AMR-Wind, we can re-open this issue.
Bug description
I am running a simulation on Kestrel in which I have 345 instances of sampling in the simulation. During initialization of the simulation, I receive the warning
WARNING: Sampling: netcdf output will negatively impact performance
once per instance, which sounds reasonable to me.However, I get this warning during every timestep for each sampler as well, which means I need to scroll through 345 warnings between every timestep. My most recent simulations are running substantially slower today on Kestrel than they were a few months ago on Kestrel. I can't say with confidence that all these print statements are tied to this behavior, but I feel like it could be having an impact.
Steps to reproduce
I ran a simulation with a
sampling
instance that uses netCDF.Steps to reproduce the behavior:
Expected behavior
The warning should occur during initialization but not during every timestep.
AMR-Wind information