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

相关推荐
大囚长10 小时前
跨学科视角下的认知建构:自我实现预言与正念调节
其他
考学参谋官12 小时前
天府新区通用航空职业学院:中国通用航空高等教育的领航者
其他
老陈头聊SEO13 小时前
长尾关键词在提升SEO效果中的实战应用与策略探讨
其他·搜索引擎·seo优化
孙严Pay14 小时前
快捷支付和网关支付,到底有啥不一样?
笔记·科技·计算机网络·其他·微信
JMchen12315 小时前
从Copilot到Cursor:AI编程工具如何重塑我的全栈开发工作流
经验分享·其他·copilot·ai编程
北京海得康2 天前
卡麦角林Cabergoline在帕金森病治疗中的作用机制与临床应用进展
其他
风途_说气象水文2 天前
大坝安全监测站:守护水利安全~
其他·安全
YWamy2 天前
国产自主音视频SDK迎来新突破 助力构建安全可控数字化生态
其他
KuYouRan2 天前
ubuntu22.04用RTX2060显卡玩steam游戏
linux·其他·ubuntu·游戏
老陈头聊SEO3 天前
掌握SEO基础技能,从零起步实现流量提升新突破
其他·搜索引擎·seo优化