- Copyright (c) 2012-2015 Institute of Industrial Science, The University of Tokyo. All rights reserved.
- Copyright (c) 2014-2016 Advanced Institute for Computational Science, RIKEN. All rights reserved.
- Copyright (c) 2016-2018 Research Institute for Information Technology, Kyushu University. All rights reserved.
Text Parser library allows us to describe and to parse JSON like simple parameter structure.
- Cmake
- MPI library (option)
$ export TP_HOME=/hogehoge
$ mkdir BUILD
$ cd BUILD
$ cmake [options] ..
$ make
$ make test // if test option is specified.
$ sudo make install
-D INSTALL_DIR= Install_directory
Specify the directory that this library will be installed. Built library is installed at
install_directory/liband the header files are placed atinstall_directory/include.
-D enable_fapi= {no | yes}
This option is for building Fortran API. Default is no.
-D enable_test= {no | yes}
This option turns on compiling sample codes and execute the tests. Default is no.
-D with_MPI= {no | yes}
If you use an MPI library, specify
with_MPI=yes, otherwise no or you can omit.
The default compiler options are described at the top level CMakeLists.txt file.
See the detail at BUILD OPTION section. If you need to change compiler flags,
you can specify by CMAKE_C_FLAGS, CMAKE_CXX_FLAGS, and CMAKE_Fortran_FLAGS, respectively. These FLAGS override the default option -O3.
-D CMAKE_C_FLAGS=options
-D CMAKE_CXX_FLAGS=options
-D CMAKE_Fortran_FLAGS=options
-Wno-devoption suppresses warnings for developers.
$ cmake -DINSTALL_DIR=${TP_HOME}/TextParser -Dwith_MPI=yes -Denable_fapi=yes -Denable_test=yes ..
FUJITSU compiler / fx10, fx100, K computer on login nodes (Cross compilation) and intel TCS environment
$ cmake -DINSTALL_DIR=${TP_HOME}/TextParser -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain_fx10.cmake -Dwith_MPI=yes -Denable_fapi=yes -Denable_test=yes ..
$ cmake -DINSTALL_DIR=${TP_HOME}/TextParser -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain_fx100.cmake -Dwith_MPI=yes -Denable_fapi=yes -Denable_test=yes ..
$ cmake -DINSTALL_DIR=${TP_HOME}/TextParser -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain_K.cmake -Dwith_MPI=yes -Denable_fapi=yes -Denable_test=yes ..
$ cmake -DINSTALL_DIR=${TP_HOME}/TextParser -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain_intel_F_TCS.cmake -Dwith_MPI=yes -Denable_fapi=yes -Denable_test=yes ..
- On Fujitsu machines(fx10, K, fx100), confirm appropriate directrory path for compiler environment.
- Before building, execute following command for clean.
$ make distclean
-
If you specify the test option by
-Denable_test=yes, you can execute the intrinsic tests by;$ make testor$ ctest -
The detailed results are written in
BUILD/Testing/Temporary/LastTest.logfile. Meanwhile, the summary is displayed for stdout.
- Kenji Ono keno@{cc.kyushu-u.ac, riken, iis.u-tokyo.ac}.jp
- Tomohiro Kawanabe
- Takafumi Suzuki
- Satoshi Fuchikami
- Naoyuki Sogo
- Eri Takebe
- Syoyo Fujita
- Ken Uzawa