Skip to content

OpenMP のリンク順序を v0.12.0 に戻す - #525

Merged
29rou merged 1 commit into
mainfrom
hotfix/openmp-link-order
Aug 19, 2026
Merged

29rou merged 1 commit into
mainfrom
hotfix/openmp-link-order

Conversation

@29rou

@29rou 29rou commented Aug 19, 2026

Copy link
Copy Markdown
Member

概要

OpenMP のリンク順序を v0.12.0 に戻す。

v0.12.1 の Linux x86_64 wheel では OpenMP ランタイムが二重に入り、実行時に SIGSEGV が起きることがあった。

変更内容

include/CMakeLists.txt で、OpenMP::OpenMP_CXX のリンク設定を BLAS / LAPACK より前に戻す。OPENJIJ_USE_OMP による OpenMP の切り替えは維持する。

確認したこと

  • Build&Uploadrun 32106250890)を workflow_dispatch で実行し、すべてのビルドが成功した
  • Linux x86_64 wheel(cp310cp314)に OpenMP ランタイムが静的に取り込まれていないことを確認した
  • v0.12.1 の wheel では SIGSEGV が再現すること、修正後の wheel では再現しないことを確認した

v0.12.1 の Linux x86_64 wheel では libiomp5 が静的にも取り込まれて
二重に入り、実行時に SIGSEGV が起きることがあったため、OpenMP を
BLAS / LAPACK より前でリンクする順序に戻す。
Copilot AI lite review requested due to automatic review settings August 19, 2026 00:44
@29rou 29rou self-assigned this Aug 19, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

OpenMP ランタイムの二重取り込みによる Linux x86_64 wheel 実行時の SIGSEGV リスクを避けるため、OpenMP のリンク順序を v0.12.0 相当に戻す PR です。OPENJIJ_USE_OMP による OpenMP の有効/無効切り替えは維持したまま、リンク順だけを調整しています。

Changes:

  • cxxjij_header_onlytarget_link_libraries において OpenMP::OpenMP_CXX を BLAS/LAPACK より前に移動
  • OpenMP のリンク指定を if(OPENJIJ_USE_OMP) ブロックから generator expression に移し、リンク順序をリスト内で明確化

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@29rou
29rou requested review from NY57 and termoshtt August 19, 2026 01:02

@termoshtt termoshtt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@29rou
29rou merged commit 04cb993 into main Aug 19, 2026
50 of 51 checks passed
@29rou
29rou deleted the hotfix/openmp-link-order branch August 19, 2026 07:41
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.

3 participants