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

相关推荐
D-海漠1 天前
S7-1200 作为 OPC UA 服务器,UA Expert 作为 OPC UA 客户端
其他
DeepNoMind1 天前
团队架构的月之暗面
其他
原创资讯1 天前
致同研究:授予知识产权许可的披露示例
其他
binary思维2 天前
用动漫形象制作虚拟主播并合成唱歌视频
其他
llilian_163 天前
晶振有什么好用的检测仪器?石英晶振测试仪 晶体测试仪
服务器·单片机·嵌入式硬件·其他
老陈头聊SEO4 天前
AI与SEO策略结合下的关键词优化新发现
其他·搜索引擎·seo优化
原创资讯6 天前
暄桐教练日课·10天《梦瑛篆书千字文》报名啦~
其他
瑞惯科技6 天前
高精度双轴倾角传感器:物联网与水平监测的理想选择
其他
瑞惯科技6 天前
物联网角度传感器与双轴倾角传感器厂家的市场分析及技术发展
其他
执欣之手7 天前
FruitySeq
其他