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

相关推荐
JiNan.YouQuan.Soft4 小时前
Windows下编译CGMA
其他·1024程序员节
AMASENSYS艾马斯5 小时前
变频器过载能力参数解读与工程应用
驱动开发·嵌入式硬件·其他·硬件工程·精益工程
Yurko1312 小时前
原码、反码、补码的快速学习
笔记·学习·其他
打螺丝的小李1 天前
企业已经上了ERP和MES,还需不需要再单独上一套QMS?
其他
老吴的商业笔记2 天前
GEO源码搭建公司怎么选?服务商自建系统的成本与交付逻辑拆解
其他
notion20252 天前
(自测可用!)Xftp 8.0安装包下载安装教程
其他
金立基实业有限公司2 天前
替塑油在纸塑包装领域的核心定义是什么
其他
立时得胶水2 天前
制袋速度改动之后,封口强度明显波动?
其他
北京海得康3 天前
奎扎替尼quizartinib心脏风险与QT间期管理:黑框警告、监测方案与禁忌人群梳理
其他
工业传感笔记3 天前
工业传感器国产替代的工程评估框架:从规格覆盖到工况验证的四个维度
其他·自动化