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

相关推荐
__Vincent_2 天前
科技史上的今天:5月3日-芯路历程 日新不息
其他
jiushiapwojdap2 天前
LU分解法求解线性方程组Matlab实现
数据结构·其他·算法·matlab
alphageek82 天前
Matlab linspace函数完全指南:从基础用法到进阶技巧
开发语言·其他·matlab
matlab_xiaowang2 天前
Redux 入门:JavaScript 可预测状态管理库
开发语言·javascript·其他·ecmascript
JiNan.YouQuan.Soft3 天前
FreeCAD源码分析:微内核架构
其他
老陈头聊SEO3 天前
生成引擎优化(GEO)在提升用户体验与内容创作效率中的创新应用
其他·搜索引擎·seo优化
老吴的商业笔记3 天前
2026年前瞻:杭州GEO优化源头服务商怎么选?深度解析AI搜索优化源头服务商避坑攻略
其他
suirosu3 天前
痛风高尿酸血症的治疗方法
笔记·其他·微信·新浪微博
lanhuazui103 天前
字母ti或tu或du发音变化规则
其他
lanhuazui104 天前
字母e在词首的发音
其他