Coder Social home page Coder Social logo

kaityo256 / sevendayshpc Goto Github PK

View Code? Open in Web Editor NEW
589.0 37.0 23.0 62.3 MB

一週間でなれる!スパコンプログラマ

Home Page: https://kaityo256.github.io/sevendayshpc/index.html

License: Creative Commons Attribution 4.0 International

C++ 4.92% Gnuplot 0.13% Ruby 10.73% Makefile 0.53% HTML 72.97% CSS 2.60% TeX 7.89% CMake 0.24%
mpi cpp

sevendayshpc's Introduction

リポジトリ(kaityo256/sevendayshpc)

HTML版

一括PDF版

  • なぜスパコンを使うのか

Day 1 : 環境構築

とりえあず手元のPCでMPIが使える環境を整え、簡単なMPIプログラミングを試してみる。

  • MPIとは
  • 余談:MPIは難しいか
  • MPIのインストール
  • はじめてのMPI
  • ランク
  • 標準出力について
  • GDBによるMPIプログラムのデバッグ

スパコンを使うときに知っておきたいこと。ジョブの投げ方など。

  • はじめに
  • スパコンとは
  • 余談:BlueGene/Lのメモリエラー
  • スパコンのアカウントの取得方法
  • ジョブの実行の仕組み
  • ジョブスクリプトの書き方
  • フェアシェア
  • バックフィル
  • チェーンジョブ
  • ステージング
  • 並列ファイルシステム

Day 3 : 自明並列

自明並列、通称「馬鹿パラ」のやり方について。

  • 自明並列、またの名を馬鹿パラとは
  • 自明並列の例1: 円周率
  • 自明並列テンプレート
  • 自明並列の例2: 多数のファイル処理
  • 自明並列の例3: 統計処理
  • 並列化効率
  • サンプル並列とパラメタ並列の違い

非自明並列の例として、一次元熱伝導方程式方程式を領域分割してみる。

  • 非自明並列
  • 一次元拡散方程式 (シリアル版)
  • 一次元拡散方程式 (並列版)
  • 余談: EagerプロトコルとRendezvousプロトコル

本格的なMPIプログラムの例として、二次元反応拡散方程式を領域分割してみる。

  • シリアル版
  • 並列化ステップ1: 通信の準備など
  • 並列化ステップ2: データの保存
  • 並列化ステップ2: のりしろの通信
  • 並列化ステップ3: 並列コードの実装
  • 余談:MPIの面倒くささ

プロセス並列とスレッド並列の併用によるハイブリッド並列化について。 特にスレッド並列で気をつけたいことなど。

  • ハイブリッド並列とは
  • 仮想メモリとTLB
  • 余談:TLBミスについて
  • NUMA
  • OpenMPの例
  • 性能評価
  • 余談:ロックの話
  • ハイブリッド並列の実例

Day 7 : SIMD化

SIMD化について。

  • はじめに
  • SIMDとは
  • SIMDレジスタを触ってみる
  • 余談:アセンブリ言語?アセンブラ言語?
  • 簡単なSIMD化の例
  • 余談:x86における浮動小数点演算の扱い
  • もう少し実戦的なSIMD化

ライセンス

Copyright (C) 2018-present Hiroshi Watanabe

この文章と絵(pptxファイルを含む)はクリエイティブ・コモンズ 4.0 表示 (CC-BY 4.0)で提供する。

This article and pictures are licensed under a Creative Commons Attribution 4.0 International License.

本リポジトリに含まれるプログラムは、MITライセンスで提供する。

The source codes in this repository are licensed under the MIT License.

なお、HTML版の作成に際し、CSSとしてgithub-markdown-cssを利用しています。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.