Build fails with NVHPC 26.9
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 18/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- c
- 領域
- build-system
調査の方向性
This is a crash inside NVHPC's own LLVM opt during the ipsccp/FunctionSpecializer pass while compiling a generated kernel source such as kernel/CMakeFiles/sgemv_t.c, not obviously an OpenBLAS defect; the reporter has already filed it upstream at the NVIDIA forum. A maintainer would start by reproducing the build with NVHPC 26.9, then checking whether the CMake flags in cmake/ for the nvc compiler path can avoid the crashing pass or flag combination. Done would mean a documented workaround or flag change that lets the 0.3.34 build complete, or a confirmation that the fix belongs upstream.
索引モデルが issue の本文から書いたものです。
説明
Hello,
I could not build OpenBLAS 0.3.34 with latest NVHPC 26.9. Error message is the following :
make[2]: Entering directory '/software/stack/cepp/.bmorvana-tests/openblas-nvhpc-26.9-repro/OpenBLAS-0.3.34.nvc-26.9.build'
[ 84%] Building C object kernel/CMakeFiles/kernel.dir/CMakeFiles/sgemv_t.c.o
cd /software/stack/cepp/.bmorvana-tests/openblas-nvhpc-26.9-repro/OpenBLAS-0.3.34.nvc-26.9.build/kernel && /software/stack/cepp/.bmorvana-tests/openblas-nvhpc-26.9-repro/nvhpc_2026_269_Linux_x86_64_cuda_multi.prefix/Linux_x86_64/26.9/compilers/bin/nvc -DUSE_GEMM3M -I/software/stack/cepp/.bmorvana-tests/openblas-nvhpc-26.9-repro/OpenBLAS-0.3.34 -I/software/stack/cepp/.bmorvana-tests/openblas-nvhpc-26.9-repro/OpenBLAS-0.3.34.nvc-26.9.build -DHAVE_C11 -tp px -march=sapphirerapids -mavx2 -mavx -msse -msse2 -msse3 -mssse3 -msse4.1 -fPIC
-DSMALL_MATRIX_OPT -DNO_WARMUP -DMAX_CPU_NUMBER=256 -DMAX_PARALLEL_NUMBER=1 -DMAX_STACK_ALLOC=2048 -DNO_AFFINITY -DVERSION="\"0.3.34\"" -DBUILD_SINGLE -DBUILD_DOUBLE -DBUILD_COMPLEX -DBUILD_COMPLEX16 -fast -O3 -DNDEBUG -MD -MT kernel/CMakeFiles/kernel.dir/CMakeFiles/sgemv_t.c.o -MF CMakeFiles/kernel.dir/CMakeFiles/sgemv_t.c.o.d -o CMakeFiles/kernel.dir/CMakeFiles/sgemv_t.c.o -c /software/stack/cepp/.bmorvana-tests/openblas-nvhpc-26.9-repro/OpenBLAS-0.3.34.nvc-26.9.build/kernel/CMakeFiles/sgemv_t.c
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
Stack dump:
0. Program arguments: /software/stack/cepp/.bmorvana-tests/openblas-nvhpc-26.9-repro/nvhpc_2026_269_Linux_x86_64_cuda_multi.prefix/Linux_x86_64/26.9/compilers/share/llvm/bin/opt --passes=default<O3> --nvhpc-consider-undef=true --nvhpc-reassoc=true --nvhpc-canonicalize-gep=true --nvhpc-phi-opt=true --nvhpc-store-opt=true --nvhpc-unswitch-loops-with-trip-count=2 --nvhpc-slp-v2fp-gather-gate=true --nvhpc-keep-int-mul-add-alt=true --nvhpc-reject-tiny-copyable-identity=true --nvhpc-reject-buildvec-horiz-reduce=true --nvhpc-slp-v2fp-gather-reject-lo=13 --nvhpc-slp-v2fp-gather-reject-hi=18 --nvhpc-fptrunc-opt=true --nvhpc-no-sink-phi-loads-same-base=true --nvhpc-fold-nextafter=true --nvhpc-lane-group-gather=true --nvhpc-load-store-opt=true --nvhpc-masked-compress-cost=true --nvhpc-slp-insertelt-vl=true --nvhpc-x86-partial-reduction=true --nvhpc-maximize-bandwidth-for-partial-reductions=true --nvhpc-disable-rewrite-tree-merge=true --nvhpc-align-stack-for-func-spec=true --denormal-fp-math=positive-zero --nvhpc-finite-opts=false --nvhpc-unswitch-loops-with-trip-count=2 --nvhpc-phi-fold=true --nvhpc-masked-load-opt=true --nvhpc-has-mixed-const-intrin=true --nvhpc-tree-cost-adjust=true --nvhpc-defer-fma-zero-fold=true --nvhpc-enable-return-slot-move=true --nvhpc-check-tli-mapping-signature=true -mcpu=sapphirerapids /tmp/nvc9l45e3TAz2OiU.ll -S -o /tmp/nvcLl45eVCqxtqPv.llvm
1. Running pass "ipsccp" on module "/tmp/nvc9l45e3TAz2OiU.ll"
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0 opt 0x000055d0723433e8 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 40
1 opt 0x000055d072340e05 llvm::sys::RunSignalHandlers() + 293
2 opt 0x000055d072344116
3 libc.so.6 0x00007f282c23fb30
4 opt 0x000055d07000d25d
5 opt 0x000055d07000cddd
6 opt 0x000055d070017716
7 opt 0x000055d0700091cf
8 opt 0x000055d0700072dc
9 opt 0x000055d0700145e7
10 opt 0x000055d071a39f61 llvm::CodeMetrics::analyzeBasicBlock(llvm::BasicBlock const*, llvm::TargetTransformInfo const&, llvm::SmallPtrSetImpl<llvm::Value const*> const&, bool, llvm::Loop const*) + 1377
11 opt 0x000055d0707b8748 llvm::FunctionSpecializer::run() + 440
12 opt 0x000055d070796b32 llvm::IPSCCPPass::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) + 1362
13 opt 0x000055d07219e3b9 llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) + 313
14 opt 0x000055d06fcb22f2 llvm::runPassPipeline(llvm::StringRef, llvm::Module&, llvm::TargetMachine*, llvm::TargetLibraryInfoImpl*, llvm::ToolOutputFile*, llvm::ToolOutputFile*, llvm::ToolOutputFile*, llvm::StringRef, llvm::ArrayRef<llvm::PassPlugin>, llvm::ArrayRef<std::function<void (llvm::PassBuilder&)>>, llvm::opt_tool::OutputKind, llvm::opt_tool::VerifierKind, bool, bool, bool, bool, bool, bool, bool, bool) + 14498
15 opt 0x000055d06fca706b optMain + 10731
16 libc.so.6 0x00007f282c22a610
17 libc.so.6 0x00007f282c22a6c0 __libc_start_main + 128
18 opt 0x000055d06fca0c0e _start + 46
nvc-Fatal-/software/stack/cepp/.bmorvana-tests/openblas-nvhpc-26.9-repro/nvhpc_2026_269_Linux_x86_64_cuda_multi.prefix/Linux_x86_64/26.9/compilers/share/llvm/bin/opt TERMINATED by signal 11
make[2]: *** [kernel/CMakeFiles/kernel.dir/build.make:1299: kernel/CMakeFiles/kernel.dir/CMakeFiles/sgemv_t.c.o] Error 2
make[2]: Leaving directory '/software/stack/cepp/.bmorvana-tests/openblas-nvhpc-26.9-repro/OpenBLAS-0.3.34.nvc-26.9.build'
make[1]: *** [CMakeFiles/Makefile2:7831: kernel/CMakeFiles/kernel.dir/all] Error 2
make[1]: Leaving directory '/software/stack/cepp/.bmorvana-tests/openblas-nvhpc-26.9-repro/OpenBLAS-0.3.34.nvc-26.9.build'
make: *** [Makefile:146: all] Error 2
Everything builds fine with NVHPC 26.5 and older, as well as with other compilers (including recent LLVM releases).
This looks like an issue on NVidia side. I opened an issue on their forums : https://forums.developer.nvidia.com/t/nvhpc-26-9-fail-during-openblas-0-3-34-build/386813
Best,
Antoine.
- 主要言語
- C
- スター
- 7.7k
- フォーク
- 1.7k
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 60
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
OpenMathLib/OpenBLAS のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
OpenMathLib/OpenBLAS#6192 ·
メンテナーはふだん 1 日以内に返信
-
New releaseオープン
難易度 4/5 3〜5日 初心者へのやさしさ 12/100
OpenMathLib/OpenBLAS#6189 · コメント 10 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
OpenMathLib/OpenBLAS#6152 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 28/100
OpenMathLib/OpenBLAS#6151 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
VORTEXM4: s2_usable() runs RDSVL before the SME2 check (SIGILL without SME)対応中かも @tesch1 が 8 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
OpenMathLib/OpenBLAS#6150 ·
メンテナーはふだん 1 日以内に返信
OpenMathLib/OpenBLAS の issue をすべて見る
似ている issue
-
Type: Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
apache/nuttx-apps#3942 ·
メンテナーはふだん 1 日以内に返信
-
Add missing unit tests for IsAdmissionPolicyName and IsCertManagerResourceName対応中かも @a1h8 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
kubernetes-sigs/security-profiles-operator#3644 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 70/100
ly05010419/MacNativeGames#1340 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信