InstallPGICompiler - t-sakashita/rokko GitHub Wiki

PGIコンパイラのインストール

PGIコンパイラの良い点

  • OpenMPIがインストールできる。
  • ScaLAPACK-2.0.2が自動でインストールされる。

インストール

MPIを使うには、以下のパッケージが必要

sudo apt-get install librdmacm-dev
sudo apt-get install ibacm

仮想マシンにログイン後、公開鍵を作成してauthorized_keysに追加する。 そうしないと、mpirunでMPIプロセスが走らない。

Vagrantfileで、以下のように、メモリを増やす。

Vagrant.configure(2) do |config|

  config.vm.box = "ubuntu/xenial64"
  #config.ssh.forward_x11 = true                                                                                                                                       
  config.vm.provider "virtualbox" do |vb|
       # Display the VirtualBox GUI when booting the machine                                                                                                           
       vb.gui = true
       # Customize the amount of memory on the VM:                                                                                                                     
       vb.memory = "100524"
       config.ssh.username = "ubuntu"
  end

end

MPIコマンド

mpirun -np 8 -mca btl ^openib ./main

-mca btl ^openibが必要か?

参考:http://www.olmjo.com/blog/2012/09/30/openmpi-warning/