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

相关推荐
javajenius2 小时前
Pixi:用 Rust 重写 Conda 体验的包管理工具
开发语言·其他·rust·conda
laowangpython2 小时前
tokio-rstracing:Rust 可观测性的标准答案
开发语言·后端·其他·rust
matlab_xiaowang2 小时前
WeasyPrint:把 HTML 变成 PDF 的文档工厂
前端·其他·pdf·html
nexustech3 小时前
simplejson:Python JSON 处理的备用引擎
开发语言·python·其他·json
matrixcode13 小时前
Kubernetes Python Client:用 Python 操作 K8s 集群
其他
.千余16 小时前
【C++】C++继承入门(下):友元、静态成员与菱形继承的底层逻辑
开发语言·c++·笔记·学习·其他
逸模21 小时前
逸模 VS CAD+SU系列(二)施工图:告别手动改图,全专业图纸自动生成
笔记·其他·cad·su·施工图
橙子家1 天前
小米开源编程助手 MIMO Code 简介和简单使用测试
其他
Kepler18742 天前
注射器与输液器厂分布在哪里?全国主要产区梳理
大数据·其他
.千余2 天前
【C++】C++继承入门(上):继承语法与基本特性详解
开发语言·c++·笔记·学习·其他