Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Floating point registers are not preserved

オープン
#232 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
38/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か

調査の方向性

jump_fcontext の実装から始め、浮動小数点値を保存する根拠が削除された v1.61 前後の履歴を比較してください。リンクされている POWER9 のレジスタ使用仕様を読み、非揮発性の FP14-FP31 に注目してください。PPC64 でコンテキスト切り替えの動作がこれらのレジスタを正しく保存し、過去の変更理由を理解できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Our project (https://github.com/DARMA-tasking/vt) uses Boost context for our task-based runtime system for scientific applications in HPC. Recently, we found a bug in a scientific application that uses our library after a context switch that we finally figured was due to not preserving nonvolatile floating point registers (in this case we were running on PPC64, but I think the problem is more prevalent). According to the POWER9 specification, FP14-FP31 are nonvolatile and must be preserved for correct context switching (https://www.ibm.com/docs/en/aix/7.2?topic=overview-register-usage-conventions).

I've noticed looking back in the history that floating point preservation was dropped around v1.61. The argument for preserving in jump_fcontext was dropped. I'm trying to understand why this functionality was lost.

@olk

主要言語
Assembly
スター
371
フォーク
185
平均マージ
4日 13時間
マージ済み PR(30日)
1

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

boostorg/context のほかの issue

boostorg/context の issue をすべて見る

似ている issue

HPC の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。