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

相关推荐
考学参谋官1 天前
广州市白云工商技师学院就业怎么样?广东技校解析
其他
安德胜SMT贴片1 天前
速贴侠在贴片加工行业的机遇与挑战分析
其他
海绵宝宝的月光宝盒1 天前
3-机加工工艺
经验分享·笔记·其他·自动化·学习方法
墨澜逸客1 天前
《华胥文化》百回大纲
学习·其他·百度·学习方法·新浪微博
安德胜SMT贴片2 天前
SMT贴片加工厂在新时代下的技术革新与产业前景分析
其他
安德胜SMT贴片2 天前
电子制造行业的小批量生产趋势分析—速贴侠助力研发加速产品上市
其他
箱包彪哥2 天前
智能背包如何重新定义世界杯观赛体验?
其他
风途_说气象水文3 天前
变电站气象站:电网安全的“气象卫士”~
其他·气象站
水质在线监测仪厂家_慕迪科技3 天前
熟悉锅炉水中硅控制监测问题
其他
市象3 天前
5万终端商户难赚康师傅“8毛钱”
其他