Skip to content

CmdStan on IBM Power-9 systems #1026

Open
@mjcarter95

Description

@mjcarter95

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions