Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build PaRSEC on Cori #22

Open
eddy16112 opened this issue Sep 7, 2018 · 0 comments
Open

build PaRSEC on Cori #22

eddy16112 opened this issue Sep 7, 2018 · 0 comments

Comments

@eddy16112
Copy link
Collaborator

Build with OpenMPI
a. modules
module unload PrgEnv-intel
module load PrgEnv-gnu
module load cmake
module load hwloc
module load openmpi

b. steps

  1. go into parsec folder, mkdir build
  2. go into build folder, and run ../contrib/platforms/config.linux -DPARSEC_GPU_WITH_CUDA=OFF -DCMAKE_INSTALL_PREFIX=$PWD
  3. make install -j x

Build with Cray (use cray cc instead of gcc)
a. modules
module unload PrgEnv-intel
module load PrgEnv-gnu
module load cmake
export CC=cc
export CXX=CC
export FC=ftn

b. steps

  1. go into parsec folder, mkdir build

  2. go into build folder, and run ../contrib/platforms/config.linux -DPARSEC_GPU_WITH_CUDA=OFF -DCMAKE_INSTALL_PREFIX=$PWD

  3. modify cmake options:
    i. run ccmake ., and set BUILD_SHARED_LIBS=OFF if it is ON
    ii. search HWLOC, and make sure three HWLOC options are empty. PaRSEC will automatically search hwloc and the bitmap API of hwloc. For some unknown reason, PaRSEC can not link the bitmap version of hwloc when using cray cc. So just disable hwloc.

  4. make -j x

  5. make install, and there are 4 errors and they are just tools of parsec, so comment them.
    i. CMake Error at tools/profiling/cmake_install.cmake:45 (file):
    file RPATH_CHANGE could not write new RPATH:
    /global/homes/w/wwu12/task-bench/deps/parsec-cray-hwloc/build/lib
    to the file:
    /global/homes/w/wwu12/task-bench/deps/parsec-cray-hwloc/build/bin/dbp2xml
    No valid ELF RPATH or RUNPATH entry exists in the file;
    solution: comment line 45-48

    ii. CMake Error at tools/profiling/cmake_install.cmake:65 (file):
    file RPATH_CHANGE could not write new RPATH:
    /global/homes/w/wwu12/task-bench/deps/parsec-cray-hwloc/build/lib
    to the file:
    /global/homes/w/wwu12/task-bench/deps/parsec-cray-hwloc/build/bin/dbpinfos
    No valid ELF RPATH or RUNPATH entry exists in the file;
    solution: comment line 65-68

    iii. CMake Error at tools/profiling/cmake_install.cmake:85 (file):
    file RPATH_CHANGE could not write new RPATH:
    /global/homes/w/wwu12/task-bench/deps/parsec-cray-hwloc/build/lib
    to the file:
    /global/homes/w/wwu12/task-bench/deps/parsec-cray-hwloc/build/bin/dbp2mem
    No valid ELF RPATH or RUNPATH entry exists in the file;
    solution: comment line 85-88

    iv. CMake Error at parsec/interfaces/ptg/ptg-compiler/cmake_install.cmake:45 (file):
    file RPATH_CHANGE could not write new RPATH:
    /global/homes/w/wwu12/task-bench/deps/parsec-cray-hwloc/build/lib
    to the file:
    /global/homes/w/wwu12/task-bench/deps/parsec-cray-hwloc/build/bin/parsec_ptgpp
    No valid ELF RPATH or RUNPATH entry exists in the file;
    solution: comment line 45-48

  6. when compiling the parsec version of task bench, modify the libparsec.so to libparsec.a in the Makefile because when using cray cc, it generates static libs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant