Skip to content
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

Sync NetCDF file at every write #3101

Merged
merged 1 commit into from
Jun 18, 2024
Merged

Sync NetCDF file at every write #3101

merged 1 commit into from
Jun 18, 2024

Conversation

Sbozzolo
Copy link
Member

This change essentially disables the internal buffer in the NetCDF library. With this change, every time something has to be written to disk, it is immediately written (as opposed to buffering writes).

This ensures that datasets are always written and no data is lost, but comes to a performance cost.

This was already the default behavior for GPU runs, so this change only affects CPU runs
Closes CliMA/ClimaCoupler.jl#858

@Sbozzolo Sbozzolo requested a review from szy21 June 18, 2024 00:21
Copy link
Member

@szy21 szy21 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

This change essentially disables the internal buffer in the NetCDF
library. With this change, every time something has to be written to
disk, it is immediately written (as opposed to buffering writes).

This ensures that datasets are always written and no data is lost, but
comes to a performance cost.

This was already the default behavior for GPU runs, so this change only
affects CPU runs
@Sbozzolo Sbozzolo enabled auto-merge June 18, 2024 14:32
@Sbozzolo Sbozzolo added this pull request to the merge queue Jun 18, 2024
Merged via the queue into main with commit 92ab0ec Jun 18, 2024
11 checks passed
@Sbozzolo Sbozzolo deleted the gb/sync branch June 18, 2024 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No output in netcdf when cpu run breaks
2 participants