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

相关推荐
M哥支付9 小时前
商户池是什么?
服务器·网络·其他·微信·金融
Ztt66666666610 小时前
一抹霞红停在圆肩壶上,留白让颜色更醒目
经验分享·笔记·其他·百度·微信公众平台
周杰伦fans10 小时前
CAD菜单栏和工具栏都不见了,怎么显示?
其他·c#
芯片封装工程师11 小时前
精密氮气烘箱:电子制造工艺中的隐形质量守门人
其他
孙严Pay12 小时前
代付 VS 纯代付
笔记·科技·计算机网络·其他·微信
kakakahahahaha1 天前
Windows Steam 游戏存档在哪里?定位和恢复排查流程
windows·其他·电脑·笔记本电脑·内容运营·软件需求
aramae1 天前
MySQL内置函数(7)
开发语言·笔记·后端·mysql·其他
JiNan.YouQuan.Soft1 天前
Windows下编译SolveSpace
其他
2601_962218741 天前
万象生鲜分拣系统事件驱动实现订单自动流转到分拣模块
其他
2601_962218902 天前
物联网对接技术视角下万象生鲜配送系统配送效率优势
其他