metis的安装及使用(Ubuntu18.04)

1、 安装metis之前,先要确保linux中已经安装好了GCC,G++以及Cmake
Gcc,g++以及cmake的版本最好是最新的,虽然满足metis的最低版本要求也不错……

2、从官网上把metis安装包下载下来:
http://glaros.dtc.umn.edu/gkhome/metis/metis/overview
3、安装包解压后,记住当前解压后的位置(如果图方便的话直接解压在home文件夹下)
4、查询当前linux的系统位数
在 include/metis.h 中修改以下代码,做到与自己计算机位数匹配(32bit or 64 bit)

1//if your system is 64 bit. 
#define IDXTYPEWIDTH 64 
 
2//if your system is 32 bit
#define IDXTYPEWIDTH 32

5,、编译及安装
在metis的顶层文件下执行

  1  make  config
  2  make

执行完上面的两步后,build文件夹中会出现linux-x86_64文件夹(貌似32位的系统会随之相应的变化),进去后可以看到build后的结果接下来需要进行metis的安装了
make install
到这后,基本就完成了,但有的也会有错误现
若在make install之后报错,原因是否为Error at include/cmake_install.cmake:36(最新版本3.16.2的是41)(file): file INSTALL cannot copy file. 若是则需要修改make install的地址。
由于默认的安装前缀为 /usr/loacl. 所以我们需要根据自己METIS 的文件地址进行修改。

1、make config prefix=~/myroot/
2//my root为你的metis顶层文件夹的地址

到此位置METIS的 编译 以及 安装 全部结束。
转载参考作者,并对新版本的Ubuntu做出了一些改动

  • 0
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
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库了。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值