improve MPI makefile
Open
Nobody has claimed this yet.
mpi
- Dominant language
- C++
- Stars
- 839
- Forks
- 220
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 14
Description
Summary:
The MPI makefiles currently do not build boost in parallel and they also do not integrate well with cmdstan.
Description:
- Builds are slow due to not using parallelization of boost builds.
make/setup_mpiadds to the globalLDFLAFSandCXXFLAGSwhich is problematic for cmdstan.- We should be able to use our standard
CC=clang++inmake/localto configure the compiler used for the shared Boost libraries as well. By default it picks something installed on the system somewhat at random and if this is different than the compiler used to compile Stan programs we can achieve segfaults.
Reproducible Steps:
NA
Current Output:
NA
Expected Output:
NA
Additional Information:
Provide any additional information here.
Current Version:
develop
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting make/setup_mpi and the make/local compiler settings, then trace how their flags are passed into Boost and cmdstan builds. Done means Boost builds in parallel, MPI setup does not modify global LDFLAGS or CXXFLAGS, and the compiler configured in make/local is used for shared Boost libraries.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- build-system
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100