METIS安装和使用

本文详细介绍了如何在Linux环境下安装METIS,包括下载安装包、安装依赖、修改配置并编译。同时,文章提到了在Windows下的编译方法,并给出了一系列参考资料。METIS的使用方法也进行了说明,包括执行命令和参数配置。对于在Visual Studio中使用METIS时遇到的错误,文章提供了一些解决方案和链接,以帮助开发者解决问题。
摘要由CSDN通过智能技术生成

https://blog.csdn.net/vernice/article/details/47144509
上述网址的文章对METIS有一个介绍。
1、在linux环境下安装:

(1)到Karypis Lab的官网下载最新的METIS安装包,然后解压软件包==》METIS 5.1。
(2)安装了C编译器(gcc)
(3)安装GNU make:https://www.aliyun.com/jiaocheng/127907.html
(4)C Make 2.8:https://blog.csdn.net/libaineu2004/article/details/77098162
(5)根据操作系统的位数修改metis.h文件中的IDXTYPEWIDTH常量的值为32或者64,然后在metis顶层文件下执行make指令,会有提示让你执行make config ;我在这里执行了make config 。。。(把最后一个cc参数去掉了),然后又执行make命令,完成了安装。

2、使用:
进入metis/build/Linux-86_64/programs文件夹下,就会发现gpmetis执行文件,然后按照已有的参数在终端中运行即可!

metis-5.1.0安装包和manual手册 2 What is new in version 5.0 4 2.1 Changes in the command-line programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2.1.1 Migration issues . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2.2 Changes in the API routines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2.2.1 Migration issues . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 3 Overview of METIS 6 3.1 Partitioning a graph . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 3.2 Alternate partitioning objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 3.3 Support for multi-phase and multi-physics computations . . . . . . . . . . . . . . . . . . . . . . . . 8 3.4 Partitioning a mesh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 3.5 Partitioning for heterogeneous parallel computing architectures . . . . . . . . . . . . . . . . . . . . . 8 3.6 Computing a fill-reducing ordering of a sparse matrix . . . . . . . . . . . . . . . . . . . . . . . . . . 9 3.7 Converting a mesh into a graph . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 4 METIS’ stand-alone programs 9 4.1 Input file formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 4.1.1 Graph file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 4.1.2 Mesh file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 4.1.3 Target partition weights file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 4.2 Output file formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4.2.1 Partition file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
安装metis_Eigen和suitesparse的步骤如下: 1. 安装Visual Studio 2015或以上版本,可以从Microsoft官网下载。 2. 下载metis的Windows二进制文件,可以从官网https://github.com/aydin-demircioglu/metis-windows/releases下载。 3. 解压缩Metis Windows二进制文件,并将其放在一个目录下。 4. 下载suitesparse的Windows二进制文件,可以从官网http://faculty.cse.tamu.edu/davis/suitesparse.html下载。 5. 解压缩Suitesparse Windows二进制文件,并将其放在一个目录下。 6. 下载Eigen的源代码,可以从官网http://eigen.tuxfamily.org/index.php?title=Main_Page下载。 7. 解压缩Eigen源代码,并将其放在一个目录下。 8. 打开Visual Studio,并创建一个新的空项目。 9. 将Eigen源代码目录中的“Eigen”文件夹复制到Visual Studio项目的目录中。 10. 在Visual Studio项目中添加Metis和Suitesparse的头文件和库文件路径,具体步骤如下: a. 在Visual Studio项目中右键单击“项目”并选择“属性”。 b. 选择“VC++目录”选项卡。 c. 在“包含目录”中添加Metis和Suitesparse的头文件路径。 d. 在“库目录”中添加Metis和Suitesparse的库文件路径。 11. 在Visual Studio项目中添加Metis和Suitesparse的库文件,具体步骤如下: a. 在Visual Studio项目中右键单击“项目”并选择“属性”。 b. 选择“链接器”选项卡。 c. 在“输入”中添加Metis和Suitesparse的库文件。 12. 现在可以在Visual Studio项目中使用Metis和Suitesparse库了。
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值