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

Double-compilation of mod_rtma_regrid.F90 causes problems for parallel build #78

Open
AlexanderRichert-NOAA opened this issue Oct 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@AlexanderRichert-NOAA
Copy link

Description

In rtma_esg_conversion.fd/CMakeLists.txt, mod_rtma_regrid.F90 is built by both the rtma_regrid_rll2esg.exe and rtma_regrid_esg2rll.exe targets. This fails intermittently on parallel builds (it happens more than 50% of attempted builds with make -j12), because two make tasks are building/working with the .mod file at the same time. This can be fixed either by making one executable a dependency of the other so they are guaranteed to build sequentially, or by creating a separate target to build the .mod file, and make both executables dependent on it. The former is probably easier.

Steps to Reproduce

Build with make -j12

@AlexanderRichert-NOAA AlexanderRichert-NOAA added the bug Something isn't working label Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant