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

use multi thread to convert grads data. #9

Open
perillaroc opened this issue Jul 25, 2018 · 1 comment
Open

use multi thread to convert grads data. #9

perillaroc opened this issue Jul 25, 2018 · 1 comment

Comments

@perillaroc
Copy link
Owner

Grads data is converted one by one currently. We should use multi-thread to convert several messages at the same time.

The order is an important thing in NWPC's GRIB 2 files. In the serial version, keeping order is very simple. However, it becomes more complicated to keep order in the multi-thread version. Different Grads messages can be converted to GRIB messages at the same time. But they must be written into GRIB file in a proper order. If time cost in file IO is far bigger than time cost in message convert, multi-thread version may not be necessary.

@perillaroc
Copy link
Owner Author

perillaroc commented Jul 27, 2018

Both OpenMP and thread version is slower than serial version.

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

No branches or pull requests

1 participant