Install Parmetis using spack

spack

Posted by JXLIU on July 11, 2022

Install ParMERIS using spack

1
2
3
4
5
6
7
8
9
10
11
12
  >> 17    CMake Error at /home/jxliu/software/spack/opt/spack/lin
           ux-centos7-skylake_avx512/gcc-11.2.0/cmake-3.23.1-bbc6p
           ttbzqq6ahmubfxj7spidrxhhha5/share/cmake-3.23/Modules/CM
           akeTestCCompiler.cmake:69 (message):
     18      The C compiler
     19
     20        "/home/jxliu/software/spack/opt/spack/linux-centos7
           -skylake_avx512/gcc-11.2.0/nvhpc-22.3-l3b5q6wj6icevhvid
           ihim46imenplnow/Linux_x86_64/22.3/comm_libs/mpi/bin/mpi
           cc"
     21
     22      is not able to compile a simple test program.

默认安装 ParMETIS 会有如上报错。

加上对 openmpi 的依赖可以编译成功,不再使用 nvhpc 编译器,而是使用 openmpi

1
spack install -j16  parmetis^openmpi/637tdhh