Last active
April 5, 2019 00:11
-
-
Save michioga/1b02a8de110af71402d558c0f2b20cc1 to your computer and use it in GitHub Desktop.
オープンソース大規模並列FEM非線形構造解析プログラム FrontISTR v4.6のインストール (Windows10 - MinGW-w64) ref: https://qiita.com/michioga/items/fae993892a808d488648
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Generating catalog po/ru.msg | |
msgfmt --statistics --tcl po/ru.po -l ru -d po/ | |
307 ツフ|bZ[W. | |
make[1]: *** [Makefile:76: po/ru.msg] エラー 1 | |
make: *** [Makefile:1656: all] エラー 2 | |
続行するには何かキーを押してください . . . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Generating catalog po/ru.msg | |
msgfmt --statistics --tcl po/ru.po -l ru -d po/ | |
307 ツフ|bZ[W. | |
make[1]: *** [Makefile:76: po/ru.msg] エラー 1 | |
make: *** [Makefile:1656: all] エラー 2 | |
続行するには何かキーを押してください . . . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MSYS) pacman -S mingw-w64-x86_64-cmake mingw-w64-x86_64-qt5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) pacman -S mingw-w64-x86_64-cmake mingw-w64-x86_64-qt5 mingw-w64-x86_64-perl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) tar xvf metis-5.1.0.tar.gz | |
(MINGW64) cd metis-5.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) vi Makefile.rule | |
DYNAMIC_ARCH=1 | |
CC=gcc | |
FC=gfortran | |
BINARY=64 | |
USE_OPENMP=1 | |
をコメントアウト |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) vim CMakeLists.txt | |
set(GKLIB_PATH "GKlib" CACHE PATH "path to GKlib") | |
と書かれている部分を | |
set(GKLIB_PATH "${CMAKE_SOUCE_DIR}/GKlib" CACHE PATH "path to GKlib") | |
に修正 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) make -j4 | |
(MINGW64) make PREFIX=$HOME/local install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) vim GKlib/gk_arch.h | |
#include <sys/resource.h> | |
を削除 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cp: cannot stat 'libopenblas.dll': No such file or directory | |
make[1]: [Makefile.install:52: install] Error 1 (ignored) | |
cp: cannot stat 'libopenblas.dll.a': No such file or directory | |
make[1]: [Makefile.install:53: install] Error 1 (ignored) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Function prototypes */ | |
extern int gk_getopt(int __argc, char **__argv, char *__shortopts); | |
extern int gk_getopt_long(int __argc, char **__argv, char *__shortopts, | |
struct gk_option *__longopts, int *__longind); | |
extern int gk_getopt_long_only (int __argc, char **__argv, | |
char *__shortopts, struct gk_option *__longopts, int *__longind); | |
を削除 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) tar xvf metis-5.1.0.tar.gz | |
(MINGW64) cd metis-5.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) cd build | |
(MINGW64) cmake -G "MSYS Makefiles" -DCMAKE_INSTALL_PREFIX=$HOME/local \ | |
-DCMAKE_BUILD_TYPE="Release" -DOPENMP=ON .. | |
(MINGW64) make | |
(MINGW64) make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) vi CMakeLists.txt | |
set(GKLIB_PATH "GKlib" CACHE PATH "path to GKlib") | |
と書かれている部分を | |
set(GKLIB_PATH "${CMAKE_SOURCE_DIR}/GKlib" CACHE PATH "path to GKlib") | |
に修正 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) cd $HOME/work | |
(MINGW64) tar xvf scalapack-2.0.2.tgz | |
(MINGW64) cd scalapack-2.0.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) vi GKlib/gk_arch.h | |
#include <sys/resource.h> | |
を削除 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) cp SLmake.inc.example SLmake.inc | |
(MINGW64) vim SLmake.inc | |
# | |
# The fortran and C compilers, loaders, and their flags | |
# | |
FC = gfortran -fno-range-check | |
CC = gcc | |
NOOPT = -O0 | |
FCFLAGS = -O3 -I$(HOME)/local/include | |
CCFLAGS = -O3 -I$(HOME)/local/include | |
FCLOADER = $(FC) | |
CCLOADER = $(CC) | |
FCLOADFLAGS = $(FCFLAGS) -L$(HOME)/local/lib -lmsmpi | |
CCLOADFLAGS = $(CCFLAGS) -L$(HOME)/local/lib -lmsmpi | |
# | |
# BLAS, LAPACK (and possibly other) libraries needed for linking test programs | |
# | |
BLASLIB = -L$(HOME)/local/lib -lopenblas | |
LAPACKLIB = | |
LIBS = $(LAPACKLIB) $(BLASLIB) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Function prototypes */ | |
extern int gk_getopt(int __argc, char **__argv, char *__shortopts); | |
extern int gk_getopt_long(int __argc, char **__argv, char *__shortopts, | |
struct gk_option *__longopts, int *__longind); | |
extern int gk_getopt_long_only (int __argc, char **__argv, | |
char *__shortopts, struct gk_option *__longopts, int *__longind); | |
を削除 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) cd build | |
(MINGW64) cmake -G "MSYS Makefiles" -DCMAKE_INSTALL_PREFIX=$HOME/local \ | |
-DCMAKE_BUILD_TYPE="Release" -DOPENMP=ON .. | |
(MINGW64) make | |
(MINGW64) make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) cp libscalapack.a $HOME/local/lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) cd $HOME/work | |
(MINGW64) tar xvf scalapack-2.0.2.tgz | |
(MINGW64) cd scalapack-2.0.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) cd $HOME/work | |
(MINGW64) tar xvf MUMPS_5.0.1.tar.gz | |
(MINGW64) cd MUMPS_5.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) cp SLmake.inc.example SLmake.inc | |
(MINGW64) vi SLmake.inc | |
# | |
# The fortran and C compilers, loaders, and their flags | |
# | |
FC = gfortran -fno-range-check | |
CC = gcc | |
NOOPT = -O0 | |
FCFLAGS = -O3 -I$(HOME)/local/include | |
CCFLAGS = -O3 -I$(HOME)/local/include | |
FCLOADER = $(FC) | |
CCLOADER = $(CC) | |
FCLOADFLAGS = $(FCFLAGS) -L$(HOME)/local/lib -lmsmpi | |
CCLOADFLAGS = $(CCFLAGS) -L$(HOME)/local/lib -lmsmpi | |
# | |
# BLAS, LAPACK (and possibly other) libraries needed for linking test programs | |
# | |
BLASLIB = -L$(HOME)/local/lib -lopenblas | |
LAPACKLIB = -L$(HOME)/local/lib -lopenblas | |
LIBS = $(LAPACKLIB) $(BLASLIB) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MSYS) gcc -v | |
(MSYS) gfortran -v | |
(MSYS) cmake --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ pacman -S base-devel mingw-w64-x86_64-toolchain mingw-w64-x86_64-cmake mingw-w64-x86_64-extra-cmake-modules mingw-w64-x86-qt5 mingw-w64-x86_64-perl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) cp Make.inc/Makefile.inc.generic Makefile.inc | |
(MINGW64) vim Makefile.inc | |
LMETISDIR = $(HOME)/local | |
IMETIS = -I$(LMETISDIR)/include | |
LMETIS = -L$(LMETISDIR)/lib -lmetis | |
ORDERINGSF = -Dmetis -Dpord | |
CC = gcc -fopenmp | |
FC = gfortran -fopenmp -fno-range-check | |
FL = gfortran -fopenmp | |
SCALAP = -L$(HOME)/local/lib -lscalapack | |
INCPAR = -I$(HOME)/local/include | |
LIBPAR = $(SCALAP) -L$(HOME)/local/lib -lmsmpi | |
LIBBLAS = -L$(HOME)/local/lib -lopenblas | |
LIBOTHERS = -lpthread -fopenmp | |
OPTF = -O -DMUMPS_OPENMP | |
OPTC = -O -I. -DMUMPS_OPENMP | |
OPTL = -O |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) cp libscalapack.a $HOME/local/lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) cd $HOME/work | |
(MINGW64) tar xvf trilinos-12.6.4-Source.tar.gz | |
(MINGW64) cd trilinos-12.6.4-Source | |
(MINGW64) mkdir build | |
(MINGW64) cd build | |
(MINGW64) cmake \ | |
-G "MSYS Makefiles" \ | |
-DCMAKE_INSTALL_PREFIX=$HOME/local \ | |
-DCMAKE_C_FLAGS="-DNO_TIMES" \ | |
-DCMAKE_CXX_FLAGS="-DNO_TIMES" \ | |
-DTrilinos_ENABLE_ML=ON \ | |
-DTrilinos_ENABLE_Zoltan=ON \ | |
-DTrilinos_ENABLE_OpenMP=ON \ | |
-DTrilinos_ENABLE_ALL_OPTIONAL_PACKAGES=OFF \ | |
-DTPL_BLAS_LIBRARIES=$HOME/local/lib/libopenblas.a \ | |
-DTPL_LAPACK_LIBRARIES=$HOME/local/lib/libopenblas.a \ | |
-DTPL_ENABLE_MPI=ON \ | |
-DML_ENABLE_MPI=ON \ | |
-DMPI_CXX_COMPILER=g++ \ | |
-DMPI_CXX_INCLUDE_PATH=$HOME/local/include \ | |
-DMPI_CXX_LIBRARIES=$HOME/local/lib/libmsmpi.a \ | |
-DMPI_C_COMPILER=gcc \ | |
-DMPI_C_INCLUDE_PATH=$HOME/local/include \ | |
-DMPI_C_LIBRARIES=$HOME/local/lib/libmsmpi.a \ | |
.. | |
(MINGW64) make | |
(MINGW64) make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) cd $HOME/work | |
(MINGW64) tar xvf MUMPS_5.1.2.tar.gz | |
(MINGW64) cd MUMPS_5.1.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) cd $HOME/work | |
(MINGW64) tar xvf REVOCAP_Refiner-1.1.04.tar.gz | |
(MINGW64) cd REVOCAP_Refiner-1.1.04 | |
(MINGW64) make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) cp Make.inc/Makefile.inc.generic Makefile.inc | |
(MINGW64) vi Makefile.inc | |
LMETISDIR = $(HOME)/local | |
IMETIS = -I$(LMETISDIR)/include | |
LMETIS = -L$(LMETISDIR)/lib -lmetis | |
ORDERINGSF = -Dmetis -Dpord | |
CC = gcc -fopenmp | |
FC = gfortran -fopenmp -fno-range-check | |
FL = gfortran -fopenmp | |
LAPACK = -L$(HOME)/local/lib -lopenblas | |
SCALAP = -L$(HOME)/local/lib -lscalapack | |
INCPAR = -I$(HOME)/local/include | |
LIBPAR = $(SCALAP) -L$(HOME)/local/lib -lmsmpi | |
LIBBLAS = -L$(HOME)/local/lib -lopenblas | |
LIBOTHERS = -lpthread -fopenmp | |
OPTF = -O | |
OPTC = -O -I. | |
OPTL = -O |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) cd $HOME/work | |
(MINGW64) tar xvf FrontISTR_V45.tar.gz | |
(MINGW64) cd FrontISTR_V45 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) cp Makefile.conf.org Makefile.conf | |
(MINGW64) vim Makefile.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) cp lib/*.a $HOME/local/lib | |
(MINGW64) cp lib/*.h $HOME/local/include |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) vim Makefile.am | |
PREFIX = @prefix@ | |
BINDIR = @bindir@ | |
LIBDIR = @libdir@ | |
INCLUDEDIR = @includedir@ | |
MAKE = @make@ | |
AR = @ar@ | |
CP = @cp@ | |
RM = @rm@ | |
MV = @mv@ | |
RANLIB = @ranlib@ | |
MKDIR = @mkdir@ | |
all: | |
@cd hecmw1 && $(MAKE) | |
@cd fistr1 && $(MAKE) | |
# @cd hecmw2 && $(MAKE) | |
# @cd fistr2 && $(MAKE) | |
@cd fistr && $(MAKE) | |
clean: | |
@cd hecmw1 && $(MAKE) clean | |
@cd fistr1 && $(MAKE) clean | |
# @cd hecmw2 && $(MAKE) clean | |
# @cd fistr2 && $(MAKE) clean | |
@cd fistr && $(MAKE) clean | |
distclean: | |
@cd hecmw1 && $(MAKE) distclean | |
@cd fistr1 && $(MAKE) distclean | |
# @cd hecmw2 && $(MAKE) distclean | |
# @cd fistr2 && $(MAKE) distclean | |
@cd fistr && $(MAKE) distclean | |
- $(RM) ./bin/* | |
install: | |
if [ ! -d $(PREFIX) ]; then \ | |
$(MKDIR) $(PREFIX); \ | |
fi | |
if [ ! -d $(BINDIR) ]; then \ | |
$(MKDIR) $(BINDIR); \ | |
fi | |
@cd hecmw1 && $(MAKE) install | |
@cd fistr1 && $(MAKE) install | |
# @cd hecmw2 && $(MAKE) install | |
# @cd fistr2 && $(MAKE) install | |
@cd fistr && $(MAKE) install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) cd $HOME/work | |
(MINGW64) tar xvf trilinos-12.12.1-Source.tar.gz | |
(MINGW64) cd trilinos-12.12.1-Source | |
(MINGW64) mkdir build | |
(MINGW64) cd build | |
(MINGW64) cmake \ | |
-G "MSYS Makefiles" \ | |
-DCMAKE_INSTALL_PREFIX=$HOME/local \ | |
-DCMAKE_C_FLAGS="-DNO_TIMES" \ | |
-DCMAKE_CXX_FLAGS="-DNO_TIMES" \ | |
-DTrilinos_ENABLE_ML=ON \ | |
-DTrilinos_ENABLE_Zoltan=ON \ | |
-DTrilinos_ENABLE_OpenMP=ON \ | |
-DTrilinos_ENABLE_ALL_OPTIONAL_PACKAGES=OFF \ | |
-DTPL_BLAS_LIBRARIES=$HOME/local/lib/libopenblas.a \ | |
-DTPL_LAPACK_LIBRARIES=$HOME/local/lib/libopenblas.a \ | |
-DTPL_ENABLE_MPI=ON \ | |
-DML_ENABLE_MPI=ON \ | |
-DMPI_CXX_COMPILER=g++ \ | |
-DMPI_CXX_INCLUDE_PATH=$HOME/local/include \ | |
-DMPI_CXX_LIBRARIES=$HOME/local/lib/libmsmpi.a \ | |
-DMPI_C_COMPILER=gcc \ | |
-DMPI_C_INCLUDE_PATH=$HOME/local/include \ | |
-DMPI_C_LIBRARIES=$HOME/local/lib/libmsmpi.a \ | |
.. | |
(MINGW64) make | |
(MINGW64) make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) vim Makefile.am | |
PREFIX = @prefix@ | |
BINDIR = @bindir@ | |
LIBDIR = @libdir@ | |
INCLUDEDIR = @includedir@ | |
MAKE = @make@ | |
AR = @ar@ | |
CP = @cp@ | |
RM = @rm@ | |
MV = @mv@ | |
RANLIB = @ranlib@ | |
MKDIR = @mkdir@ | |
all: | |
@cd hecmw1 && $(MAKE) | |
@cd fistr1 && $(MAKE) | |
# @cd hecmw2 && $(MAKE) | |
# @cd fistr2 && $(MAKE) | |
@cd fistr && $(MAKE) | |
clean: | |
@cd hecmw1 && $(MAKE) clean | |
@cd fistr1 && $(MAKE) clean | |
# @cd hecmw2 && $(MAKE) clean | |
# @cd fistr2 && $(MAKE) clean | |
@cd fistr && $(MAKE) clean | |
distclean: | |
@cd hecmw1 && $(MAKE) distclean | |
@cd fistr1 && $(MAKE) distclean | |
# @cd hecmw2 && $(MAKE) distclean | |
# @cd fistr2 && $(MAKE) distclean | |
@cd fistr && $(MAKE) distclean | |
- $(RM) ./bin/* | |
install: | |
if [ ! -d $(PREFIX) ]; then \ | |
$(MKDIR) $(PREFIX); \ | |
fi | |
if [ ! -d $(BINDIR) ]; then \ | |
$(MKDIR) $(BINDIR); \ | |
fi | |
@cd hecmw1 && $(MAKE) install | |
@cd fistr1 && $(MAKE) install | |
# @cd hecmw2 && $(MAKE) install | |
# @cd fistr2 && $(MAKE) install | |
@cd fistr && $(MAKE) install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) cd $HOME/work | |
(MINGW64) tar xvf REVOCAP_Refiner-1.1.04.tar.gz | |
(MINGW64) cd REVOCAP_Refiner-1.1.04 | |
(MINGW64) make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) ./setup.sh -p --with-tools --with-refiner --with-metis --with-mumps --with-lapack --with-ml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) cd $HOME/work | |
(MINGW64) tar xvf FrontISTR_V46.tar.gz | |
(MINGW64) cd FrontISTR_4.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) make | |
(MINGW64) make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) cp Makefile.conf.org Makefile.conf | |
(MINGW64) vi Makefile.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MSYS) mkdir $HOME/work | |
(MSYS) mkdir -p $HOME/local/lib | |
(MSYS) mkdir $HOME/local/include |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) gcc -v | |
(MINGW64) gfortran -v | |
(MINGW64) cmake --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) ls $HOME/FrontISTR/bin | |
fistr1.exe hecmw_part1.exe neu2fstr.exe rmerge.exe | |
hec2rcap.exe hecmw_vis1.exe rconv.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) vi Makefile.conf | |
################################################## | |
# # | |
# Setup Configulation File for FrontISTR # | |
# # | |
################################################## | |
# MPI | |
MPIDIR = $(HOME)/local | |
MPIBINDIR = "/c/Program\ Files/Microsoft\ MPI/Bin/" | |
MPILIBDIR = $(MPIDIR)/lib | |
MPIINCDIR = $(MPIDIR)/include | |
MPILIBS = -lmsmpi | |
# for install option only | |
PREFIX = $(HOME)/FrontISTR | |
BINDIR = $(PREFIX)/bin | |
LIBDIR = $(PREFIX)/lib | |
INCLUDEDIR = $(PREFIX)/include | |
# Metis | |
METISDIR = $(HOME)/local | |
METISLIBDIR = $(METISDIR)/lib | |
METISINCDIR = $(METISDIR)/include | |
HECMW_METIS_VER= 5 | |
# ParMetis | |
PARMETISDIR = $(HOME)/ParMetis-3.1 | |
PARMETISLIBDIR = $(PARMETISDIR) | |
PARMETISINCDIR = $(PARMETISDIR)/ParMETISLib | |
# Refiner | |
REFINERDIR = $(HOME)/work/REVOCAP_Refiner-1.1.04 | |
REFINERINCDIR = $(REFINERDIR)/Refiner | |
REFINERLIBDIR = $(REFINERDIR)/lib/x86_64-linux | |
# Coupler | |
REVOCAPDIR = $(HOME)/REVOCAP_Coupler | |
REVOCAPINCDIR = $(REVOCAPDIR)/librcap | |
REVOCAPLIBDIR = $(REVOCAPDIR)/librcap | |
# MUMPS | |
MUMPSDIR = $(HOME)/local | |
MUMPSINCDIR = $(MUMPSDIR)/include | |
MUMPSLIBDIR = $(MUMPSDIR)/lib | |
MUMPSLIBS = -ldmumps -lmumps_common -lpord -L$(HOME)/local/lib -lscalapack | |
# MKL PARDISO | |
MKLDIR = $(HOME)/ | |
MKLINCDIR = $(MKLDIR)/include | |
MKLLIBDIR = $(MKLDIR)/lib | |
# ML | |
MLDIR = $(HOME)/local | |
MLINCDIR = $(MLDIR)/include | |
MLLIBDIR = $(MLDIR)/lib | |
MLLIBS = -lml -lzoltan -lws2_32 | |
# C compiler settings | |
CC = gcc -fopenmp | |
CFLAGS = -D_WINDOWS | |
LDFLAGS = -lstdc++ -lm | |
OPTFLAGS = -O3 | |
# C++ compiler settings | |
CPP = g++ -fopenmp | |
CPPFLAGS = -D_WINDOWS | |
CPPLDFLAGS = | |
CPPOPTFLAGS = -O3 | |
# Fortran compiler settings | |
F90 = gfortran -fopenmp -fno-range-check | |
F90FLAGS = -D_WINDOWS | |
F90LDFLAGS = -lstdc++ -L$(HOME)/local/lib -lopenblas | |
F90OPTFLAGS = -O2 | |
F90FPP = -cpp | |
F90LINKER = gfortran -fopenmp | |
MAKE = make | |
AR = ar ruv | |
MV = mv -f | |
CP = cp -f | |
RM = rm -f | |
MKDIR = mkdir -p |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
libwinpthread-1.dll | |
libgfortran-3.dll | |
libgcc_s_seh-1.dll | |
libgomp-1.dll | |
libstdc++-6.dll | |
libquadmath-0.dll |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) vi Makefile.am | |
PREFIX = @prefix@ | |
BINDIR = @bindir@ | |
LIBDIR = @libdir@ | |
INCLUDEDIR = @includedir@ | |
MAKE = @make@ | |
AR = @ar@ | |
CP = @cp@ | |
RM = @rm@ | |
MV = @mv@ | |
RANLIB = @ranlib@ | |
MKDIR = @mkdir@ | |
all: | |
@cd hecmw1 && $(MAKE) | |
@cd fistr1 && $(MAKE) | |
# @cd hecmw2 && $(MAKE) | |
# @cd fistr2 && $(MAKE) | |
@cd fistr && $(MAKE) | |
clean: | |
@cd hecmw1 && $(MAKE) clean | |
@cd fistr1 && $(MAKE) clean | |
# @cd hecmw2 && $(MAKE) clean | |
# @cd fistr2 && $(MAKE) clean | |
@cd fistr && $(MAKE) clean | |
distclean: | |
@cd hecmw1 && $(MAKE) distclean | |
@cd fistr1 && $(MAKE) distclean | |
# @cd hecmw2 && $(MAKE) distclean | |
# @cd fistr2 && $(MAKE) distclean | |
@cd fistr && $(MAKE) distclean | |
- $(RM) ./bin/* | |
install: | |
if [ ! -d $(PREFIX) ]; then \ | |
$(MKDIR) $(PREFIX); \ | |
fi | |
if [ ! -d $(BINDIR) ]; then \ | |
$(MKDIR) $(BINDIR); \ | |
fi | |
@cd hecmw1 && $(MAKE) install | |
@cd fistr1 && $(MAKE) install | |
# @cd hecmw2 && $(MAKE) install | |
# @cd fistr2 && $(MAKE) install | |
@cd fistr && $(MAKE) install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) ./setup.sh -p --with-tools --with-refiner --with-metis --with-mumps --with-lapack --with-ml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) make | |
(MINGW64) make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) ls $HOME/FrontISTR/bin | |
fistr1.exe hecmw_part1.exe neu2fstr.exe rmerge.exe | |
hec2rcap.exe hecmw_vis1.exe rconv.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
libwinpthread-1.dll | |
libgfortran-3.dll | |
libgcc_s_seh-1.dll | |
libgomp-1.dll | |
libstdc++-6.dll | |
libquadmath-0.dll |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) cd $HOME/local/lib/ | |
(MINGW64) gendef /c/Windows/System32/msmpi.dll | |
(MINGW64) dlltool -d msmpi.def -l libmsmpi.a -D /c/Windows/System32/msmpi.dll | |
(MINGW64) ls | |
libmsmpi.a msmpi.def |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) mkdir $HOME/work | |
(MINGW64) mkdir -p $HOME/local/lib | |
(MINGW64) mkdir $HOME/local/include |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) cd $HOME/local/include | |
(MINGW64) cp /c/Program\ Files\ \(x86\)/Microsoft\ SDKs/MPI/Include/*.h . | |
(MINGW64) cp /c/Program\ Files\ \(x86\)/Microsoft\ SDKs/MPI/Include/x64/*.h . | |
(MINGW64) ls | |
mpi.h mpif.h mpifptr.h mpio.h mspms.h pmidbg.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) cd $HOME/local/lib/ | |
(MINGW64) gendef /c/Windows/System32/msmpi.dll | |
(MINGW64) dlltool -d msmpi.def -l libmsmpi.a -D /c/Windows/System32/msmpi.dll | |
(MINGW64) ls | |
libmsmpi.a msmpi.def |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) vim mpi.h | |
#ifndef MPI_INCLUDED | |
#define MPI_INCLUDED | |
のすぐ下に | |
#include <stdint.h> | |
を追加する。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) cd $HOME/local/include | |
(MINGW64) cp /c/Program\ Files\ \(x86\)/Microsoft\ SDKs/MPI/Include/*.h . | |
(MINGW64) cp /c/Program\ Files\ \(x86\)/Microsoft\ SDKs/MPI/Include/x64/*.h . | |
(MINGW64) ls | |
mpi.h mpif.h mpifptr.h mpio.h mspms.h pmidbg.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) vim mpif.h | |
407行目 | |
PARAMETER (MPI_ADDRESS_KIND=INT_PTR_KIND()) | |
を | |
PARAMETER (MPI_ADDRESS_KIND=8) | |
へ変更する。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) vi mpi.h | |
#ifndef MPI_INCLUDED | |
#define MPI_INCLUDED | |
のすぐ下に | |
#include <stdint.h> | |
を追加する。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) cd $HOME/work | |
(MINGW64) tar xvf OpenBLAS-0.2.18.tar.gz | |
(MINGW64) cd OpenBLAS-0.2.18 | |
(MINGW64) make BINARY=64 NO_SHARED=1 USE_OPENMP=1 | |
(MINGW64) make PREFIX=$HOME/local install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) vi mpif.h | |
409行目 | |
PARAMETER (MPI_ADDRESS_KIND=INT_PTR_KIND()) | |
を | |
PARAMETER (MPI_ADDRESS_KIND=8) | |
へ変更する。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cp: cannot stat 'libopenblas.dll': No such file or directory | |
make[1]: [Makefile.install:52: install] Error 1 (ignored) | |
cp: cannot stat 'libopenblas.dll.a': No such file or directory | |
make[1]: [Makefile.install:53: install] Error 1 (ignored) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(MINGW64) cd $HOME/work | |
(MINGW64) tar xvf OpenBLAS-0.2.20.tar.gz | |
(MINGW64) cd OpenBLAS-0.2.20 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment