Linux下编译安装METIS

本文记录Linux下编译安装METIS的流程。

零、环境

|---------|--------------------|
| 操作系统 | Ubuntu 22.04.4 LTS |
| VS Code | 1.92.1 |
| Git | 2.34.1 |
| GCC | 11.4.0 |
| CMake | 3.22.1 |

一、安装依赖

1.1 下载GKlib

复制代码
sudo apt-get install build-essential
sudo apt-get install cmake

2.2 编译安装GKlib

下载GKlib代码,

复制代码
git clone https://github.com/KarypisLab/GKlib

按照下表完成CMake相关配置,构建项目,完成编译与安装。

|----------------------|---------------------------------|
| CMAKE_INSTALL_PREFIX | ~/dev/3rdparty/install/gcc-opt |
| CMAKE_BUILD_TYPE | Release |
| | |
| | |

二、编译安装

2.1 下载源码

复制代码
git clone https://github.com/KarypisLab/METIS.git

2.2 生成头文件

运行以下命令在生成build/xinclude目录

复制代码
make config shared=1 cc=icx prefix=~/dev/3rdparty/install/gcc-opt

2.3 编译

按照下表完成CMake相关配置,构建项目,完成编译与安装。

|----------------------|---------------------------------|
| CMAKE_INSTALL_PREFIX | ~/dev/3rdparty/install/gcc-opt |
| | |
| | |

附录I: cmake-tools-kits.json

复制代码
[
  {
    "name": "GCC 11.4.0 x86_64-linux-gnu",
    "compilers": {
      "C": "/usr/bin/gcc",
      "CXX": "/usr/bin/g++"
    },
    "isTrusted": true
  },
  {
    "name": "Intel(R) oneAPI DPC++/C++ Compiler 2024.2.1",
    "compilers": {
      "C": "/opt/intel/oneapi/compiler/2024.2/bin/icx",
      "CXX": "/opt/intel/oneapi/compiler/2024.2/bin/icpx"
    },
    "isTrusted": true
  }
]

网络

GKlibhttps://github.com/KarypisLab/GKlib

METIShttps://github.com/KarypisLab/METIS

相关推荐
Mxzx品牌14 小时前
佛山招聘软件哪个好:【帅聘网】匹配度高
笔记·其他·生活
5757716 小时前
净水器怎么选才实惠:过滤精度、流速、总净水量和认证四步核账法
其他
执欣之手16 小时前
Hmcke Tugam
其他
深圳帝王星科技1 天前
SE8408 Sync Buck 100V 30A
其他
北京海得康1 天前
瑞拉可兰 (Relacorilant) 不良反应、安全警戒要点与临床安全
其他
智慧大脑搬运工2 天前
环保绩效A级B级评定标准与绿色制造准入机制研究——基于山东省2025—2026年政策框架分析
其他
cellurw2 天前
20260803 LA Vendor与CDSP修复及BP模块实测
其他
2601_962101833 天前
广告灯箱导光板材料对比:PMMA vs PC vs PETG,亮欣如何用光学级PMMA实现高亮低故障?
其他
执欣之手4 天前
Hullnky Taper
其他
邵老师讲教育4 天前
2026实测:6大宁波数学小升初机构横向对比
其他