CmdStan on IBM Power-9 systems

未关闭
#1,026 14 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
bash, cpp

调研方向

首先,在 IBM Power-9 系统上重现 make ../src/models/deaths_and_111_calls 失败的问题,并检查预编译的入口点 bin/stanc。查看链接的 Stan Discourse 帖子及其附带的 PDF,了解手动构建的编译器配置;当 Stan 模型能够在 Power-9 上成功编译,并且在适当情况下记录所需步骤时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

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

主要语言
C++
星标
240
派生
105
PR 合并指标
30 天内没有已合并 PR

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

stan-dev/cmdstan 的其他 Issue

查看 stan-dev/cmdstan 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。