CmdStan on IBM Power-9 systems
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 238
- Forks
- 106
- Avg merge
- 2h 29m
- Merged PRs (30d)
- 6
Description
Summary:
CmdStan fails to compile models on IBM Power-9 systems.
This issue was previously discussed in the following Stan discourse post, https://discourse.mc-stan.org/t/error-running-cmdstan-on-ibm-power9-system/22060. A step-by-step solution is given in the PDF document attached to the first post - possibly worth adding to the Stan documentation?
Description:
Trying to compile a Stan model on an IBM Power-9 system results in the following error:
make ../src/models/deaths_and_111_calls
--- Translating Stan model to C++ code ---
bin/stanc --o=../src/models/deaths_and_111_calls.hpp ../src/models/deaths_and_111_calls.stan
/bin/bash: bin/stanc: cannot execute binary file
make: *** No rule to make target `../src/models/deaths_and_111_calls.hpp', needed by `../src/models/deaths_and_111_calls'. Stop.
CmdStan is distributed with pre-compiled stanc binary files that were built for x86 architecture, not Power-9. Because of this, we must build and configure the Stan compiler by hand.
Reproducible Steps:
Compile any Stan model on an IBM Power-9 system.
Current Output:
See description,
Expected Output:
A compiled model.
Additional Information:
NA.
Current Version:
Initially v2.23.0, persists v2.27.0
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 reproducing the make ../src/models/deaths_and_111_calls failure on an IBM Power-9 system and inspect the precompiled bin/stanc entry point. Review the linked Stan Discourse post and its attached PDF for the hand-built compiler configuration; done means a Stan model compiles successfully on Power-9, with the required steps documented if appropriate.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- bash, cpp
- Domain
- build-system, cli, compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100