Use CMAKE_POSITION_INDEPENDENT_CODE instead of manual -fPIC (#84)
Replace the manual -fPIC flag in gkbuild.cmake (which only applied to GCC on non-MinGW platforms) with CMake’s built-in CMAKE_POSITION_INDEPENDENT_CODE property. This ensures PIC is enabled portably across all compilers and platforms, including for static library builds.
Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802032778号
METIS
METIS is a set of serial programs for partitioning graphs, partitioning finite element meshes, and producing fill reducing orderings for sparse matrices. The algorithms implemented in METIS are based on the multilevel recursive-bisection, multilevel k-way, and multi-constraint partitioning schemes developed in our lab.
Downloading METIS
You can download METIS by simply cloning it using the command:
Building standalone METIS binaries and library
To build METIS you can follow the instructions below:
Dependencies
General dependencies for building METIS are: gcc, cmake, build-essential. In Ubuntu systems these can be obtained from the apt package manager (e.g., apt-get install cmake, etc)
In addition, you need to download and install GKlib by following the instructions there.
Building and installing METIS
METIS is primarily configured by passing options to make config. For example:
will configure METIS to be built as a shared library using GCC and then install the binaries, header files, and libraries at
directories, respectively.
Common configuration options are:
Advanced debugging related options:
Other make commands
Copyright & License Notice
Copyright 1998-2020, Regents of the University of Minnesota
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.