mpiP v3.4.1 설치 소개
가. 설치 환경
구분
내용
나. 설치 전 환경 설정
$ module purge
$ module load gcc/7.2.0 openmpi/3.1.0다. 설치 과정
1. binutils 설치
2. libunwind 설치
3. mpiP 설치
Last updated
$ module purge
$ module load gcc/7.2.0 openmpi/3.1.0Last updated
$ tar xzvf binutils-2.32.tar.gz
$ cd binutils-2.32
$ ./configure --prefix=${HOME}/apps/binutils \
--libdir=${HOME}/apps/my_lib \
--includedir=${HOME}/apps/my_include \
--enable-ld=yes --with-system-zlib \
--with-mpc=/apps/common/mpc/1.1.0 --with-mpfr=/apps/common/mpfr/4.0.1 \
--with-gmp=/apps/common/gmp/6.1.2 --enable-install-libiberty
$ make
$ make install$ tar xzvf libunwind-1.2.tar.gz
$ cd libunwind-1.2
$ ./configure --prefix=${HOME}/apps/libunwind \
--libdir=${HOME}/apps/my_lib \
--includedir=${HOME}/apps/my_include \
--enable-shared --enable-static
$ make
$ make install$ tar xzvf mpiP-3.4.1.tar.gz
$ cd mpiP-3.4.1
$ ./configure --prefix=${HOME}/apps/mpiP \
--libdir=${HOME}/apps/my_lib \
--includedir=${HOME}/apps/my_include \
LDFLAGS="-L/apps/compiler/gcc/7.2.0/openmpi/3.1.0/lib \
-L${HOME}/apps/my_lib" </p>
CPPFLAGS="-I/apps/compiler/gcc/7.2.0/openmpi/3.1.0/include \
-I${HOME}/apps/my_include"
$ vi mpiPi.h
----- 수정 사항은 아래의 내용 참고 -----
$ make
$ make install<수정 전>
#ifndef _MPIPI_H
#define _MPIPI_H
<수정 후>
#ifndef _MPIPI_H
#define _MPIPI_H
#define PACKAGE 1
#define PACKAGE_VERSION 1