Skip to content

build PaRSEC on Cori #22

@eddy16112

Description

@eddy16112

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions