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

相关推荐
2601_9498146910 小时前
Moneta外汇的新手理解门槛够不够顺手?
其他
蜜桃味女焊匠人18 小时前
2026焊接保护气体降耗最优改造方案
人工智能·经验分享·其他·机器人
2601_9498144919 小时前
FPG财盛国际:工具可用性的标准归纳
其他
2601_9498146920 小时前
Moneta外汇的问题说明方式清不清楚?
其他
2601_949814691 天前
Moneta外汇的规则阅读感受是否友好?
其他
尺度商业1 天前
5年10万亿增量的消费新格局
其他
2601_949814172 天前
FPG财盛国际:把产品理解成本做到位——细节分析与提示整理
其他
2601_949814172 天前
FPG财盛国际:从风险提示切入的方法分析
其他
小崔聊喷画3 天前
山东展会车贴打印技术白皮书:2026年行业破局指南与实操解析
其他
shunjinnuantong3 天前
通风风管行业制造格局与技术现状分析
其他·制造