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

Improve build process #305

Merged
merged 1 commit into from
Aug 29, 2019
Merged

Improve build process #305

merged 1 commit into from
Aug 29, 2019

Conversation

simonbyrne
Copy link
Member

  • search for libmpich if libmpi isn't found
  • run gen_consts under mpi launcher

This should fix some of the issues when running with Cray MPI.

cc @markwdalton

- search for libmpich if libmpi isn't found
- run gen_consts under mpi launcher

run(`$mpicc gen_consts.c -o gen_consts $CFLAGS`)
run(`$mpicc gen_consts.c -o gen_consts $CFLAGS`)
run(`$mpiexec -n 1 ./gen_consts`)
Copy link
Member

Choose a reason for hiding this comment

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

Really that's needed? :/

Copy link
Member Author

Choose a reason for hiding this comment

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

Yup, because gen_consts calls MPI_Init: on Cray MPI it needs to be launched inside aprun.

@simonbyrne simonbyrne merged commit 928d535 into master Aug 29, 2019
@simonbyrne simonbyrne deleted the sb/build branch August 29, 2019 22:27
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.

2 participants