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

Cray ftn has race with .mod file creation when jobs=n is specified for make #843

Open
andrewkallai opened this issue Oct 31, 2024 · 0 comments
Assignees
Labels
Makefile Relevant to the Makefile

Comments

@andrewkallai
Copy link
Collaborator

On the invocation of ftn, any USE statements in the Fortran code will indicate to ftn to locate a .mod file specified in the
directory specified by the flag -J <dir> (-J ./ompvv).
When multiple threads are just to execute the make file, each .mod file created in ./ompvv is subject to a race condition, which leads to module file corruption. Hence, running the testsuite using multiple threads with ftn becomes untenable.
A proposed solution is to do away with .mod file creation, and instead store the module info in the .o file created by ftn.
This can be done by using -dm and removing -J .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Makefile Relevant to the Makefile
Projects
None yet
Development

No branches or pull requests

1 participant