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

相关推荐
北京海得康5 小时前
卡米司群camizestrant适应症、患者筛选与用法用量
其他
TorchWeiye1 天前
车规可靠性设备升级:汽车电子企业采购真空共晶炉的实用考量
其他
hgfsjk1 天前
跨境电商ERP系统软件哪个好?2026年选型指南
大数据·经验分享·笔记·其他
goodzz2221 天前
中天至尊系列,不止是地板
其他
TorchWeiye1 天前
储能设备厂采购台式回流焊,选型核心看三点
其他
ZKXinHuo1 天前
异构集成集成电路真空回流焊需求分化与设备选型逻辑
其他
gu_qing_qing2 天前
不同机型适配飞机腊克线规格与材质匹配逻辑解析
其他
JiNan.YouQuan.Soft2 天前
Windows下编译libconfig
其他
ZKXinHuo2 天前
芯片中试为何越来越重要?无锡12英寸晶圆加工服务商的工程解答
其他
ZKXinHuo3 天前
苏州FPGA集成电路研发企业的封装工艺底层逻辑
其他