install mpi4py on MacPro

Anacondaを使って、Mac Pro にmpi4pyをインストール。

 

$ conda install -c anaconda mpi4py
Fetching package metadata ...............
Solving package specifications: .

Package plan for installation in environment /Users/_my_username_/anaconda:

The following NEW packages will be INSTALLED:

mpi4py: 2.0.0-py27_0 anaconda
openmpi: 1.6.3-1 anaconda

The following packages will be UPDATED:

conda: 4.3.29-py27_0 conda-forge --> 4.4.8-py27_0 anaconda
pycosat: 0.6.1-py27_1 --> 0.6.3-py27h6c51c7e_0 anaconda

The following packages will be SUPERSEDED by a higher-priority channel:

conda-env: 2.6.0-0 conda-forge --> 2.6.0-h36134e3_0 anaconda

Proceed ([y]/n)? y

conda-env-2.6. 100% |###########################################################################| Time: 0:00:00 1.66 MB/s
openmpi-1.6.3- 100% |###########################################################################| Time: 0:00:00 10.75 MB/s
mpi4py-2.0.0-p 100% |###########################################################################| Time: 0:00:00 23.69 MB/s
pycosat-0.6.3- 100% |###########################################################################| Time: 0:00:00 4.53 MB/s
conda-4.4.8-py 100% |###########################################################################| Time: 0:00:00 5.07 MB/s

 

$ python

Python 2.7.12 |Anaconda custom (x86_64)| (default, Jul 2 2016, 17:43:17)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>> import mpi4py
>>>

海外旅行: 銀行に旅行を伝えておく

海外旅行を事前に銀行に伝えておくと、transactionに支障が出にくい。

 

'travel notice'でgoogle検索すると、公式twitterが出てきた。いわく、PNC bankの場合、Debit cardでログインして下記のようにタブをたどると、旅行を登録できる。

go to Cust Serv tab>Debit Card Serv>Debit/ATM Card Serv & Resources>Notify Us of Travel (bottom right)

 

2019/07/21 追記
To submit a request to place a travel notice, click on the Customer Service tab. Beneath the Manage Accounts section, click on the Debit Card Services link. From the Debit/ATM Card page, click on the Debit/ATM Card Services & Resources link. Under the Debit/ATM Card Maintenance section, click on the Notify Us of Travel link.

ssh でjobをバックグラウンドで走らせる

$ ssh -Y xxxx@xxx.xxx.-------.xxx.edu

 

$ cd
$ bash
$ source .bash_profile

   ..... これでbashが使える。

$ cd [some directory]
$ nohup sh XXXXX.sh > out.log 2> err.log < /dev/null &

 ..... これでsshをログアウトしてもjobは走り続ける。

 

 

 

 

gala インストール

$ pip install astro-gala
Collecting astro-gala
Downloading astro-gala-0.1.3.tar.gz (1.1MB)
100% |████████████████████████████████| 1.1MB 229kB/s
Requirement already satisfied (use --upgrade to upgrade): astropy in /usr/local/anaconda/lib/python2.7/site-packages (from astro-gala)
Requirement already satisfied (use --upgrade to upgrade): pyyaml in /usr/local/anaconda/lib/python2.7/site-packages (from astro-gala)
Requirement already satisfied (use --upgrade to upgrade): scipy in /usr/local/anaconda/lib/python2.7/site-packages (from astro-gala)
Requirement already satisfied (use --upgrade to upgrade): numpy>=1.6.0 in /usr/local/anaconda/lib/python2.7/site-packages (from astropy->astro-gala)
Building wheels for collected packages: astro-gala
Running setup.py bdist_wheel for astro-gala
Stored in directory: /Users/kh_____i/Library/Caches/pip/wheels/f4/39/c5/76d9c26914a01fa4f90bf1e94cbb5940148fa87f4df201e6c1
Successfully built astro-gala
Installing collected packages: astro-gala
Successfully installed astro-gala-0.1.3
You are using pip version 7.1.2, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.