0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

πパイを計算してみよう

0
Last updated at Posted at 2026-03-13

記事一覧:https://qiita.com/takulabo/items/d5f56132c02d4136687c

今日は何の日?
3月14日!????
3.141592.......円周率の日???

せっかくなので、πを計算してみましょう。笑
果たして、どこまで行けるのか!?

◆2026年3月のギネス最高記録
 ・300兆桁
 ・SSD 2.2PB
 ・CPU AMD EPYC9684X × 2

構成
OS:Windows11
WSL:Ubuntu-24.04
Memory:128GB

①セットアップ手順

①-1.WSLにて、Ubuntu24.04をインストール

1.Microsoft Storeにて、
「Ubuntu 24.04」をインストール

2.DドライブにWSLを作る

mkdir D:\WSL
mkdir D:\WSL\Ubuntu-24.04_pi

3.新規Ubuntuダウンロード

cd D:\WSL
curl.exe -L -o ubuntu.tar.gz https://cloud-images.ubuntu.com/wsl/noble/current/ubuntu-noble-wsl-amd64-wsl.rootfs.tar.gz

4.WSL作成

wsl --import Ubuntu-24.04_pi D:\WSL\Ubuntu-24.04_pi ubuntu2404.tar

確認:D:\WSL\Ubuntu-24.04_pi
   └ ext4.vhdx

5.WSL起動

wsl -d Ubuntu-24.04_pi

確認:root@host:/mnt/d/WSL/Ubuntu-24.04_pi#

6.ユーザでログイン

su ubuntu

確認:ubuntu@hostname:~$

①-2.y-cruncherをインストール

1.y-cruncherをインストール

cd ~/pi-work
wget https://cdn.numberworld.org/y-cruncher-downloads/y-cruncher%20v0.8.7.9547-static.tar.xz

2.ファイルを解凍します

tar -xvf y-cruncher*.tar.xz

確認:フォルダができます。
y-cruncher v0.8.7.9547-static'

3.フォルダ名変更

mv "y-cruncher v0.8.7.9547-static" y-cruncher

確認:フォルダ名「y-cruncher」

4.起動

cd y-cruncher
./y-cruncher

確認:起動画面表示
Launching y-cruncher...
'=======================
Running from console...

5.選択1

2  Component Stress Tester
-------
Enter your choice:
option: 2

6.選択2

0  Start Stress-Testing!
option: 0

確認:ストレステストが開始されます。
 Allocating Memory...
 Core 2: 2.21 GiB
 Iteration: 0
 Running BKT: Passed
 Running BBP: Passed
 ....
 Running VT3: Passed (以降繰り返し実施)

Ctrl+cで止めてOKです。

7.再びの起動

./y-cruncher

8.選択1

Binary:
 0  Benchmark Pi  (standard, memory-intensive)
option: 0

確認:

9.選択2

Select a Benchmark Type:
 1 Multi-Threaded (all cores)
 option: 1

確認:【結果!!】
 10,000,000,000
 100億桁。。
 3分で完了しました!!!

image.png

最新のみんなのベンチマーク結果がアップされていました。
https://www.numberworld.org/y-cruncher/#Benchmarks

研究用を回してみるのも楽しいですね☆彡

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?