CMakeUserFindPARMETIS: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
(Add explicit preformat markup)
(Remove leading space rectangles from preformatted blocks)
Line 2: Line 2:
-----
-----
<pre>
<pre>
  #
#
  # Find the PARMETIS includes and libraries
# Find the PARMETIS includes and libraries
  #
#
  # ParMETIS is an MPI-based parallel library that implements a variety of algorithms for  
# ParMETIS is an MPI-based parallel library that implements a variety of algorithms for  
  # partitioning unstructured graphs, meshes, and for computing fill-reducing orderings of  
# partitioning unstructured graphs, meshes, and for computing fill-reducing orderings of  
  # sparse matrices. It can be found at:
# sparse matrices. It can be found at:
  # http://www-users.cs.umn.edu/~karypis/metis/parmetis/index.html
# http://www-users.cs.umn.edu/~karypis/metis/parmetis/index.html
  #
#
  # PARMETIS_INCLUDE_DIR - where to find autopack.h
# PARMETIS_INCLUDE_DIR - where to find autopack.h
  # PARMETIS_LIBRARIES  - List of fully qualified libraries to link against.
# PARMETIS_LIBRARIES  - List of fully qualified libraries to link against.
  # PARMETIS_FOUND      - Do not attempt to use if "no" or undefined.
# PARMETIS_FOUND      - Do not attempt to use if "no" or undefined.
 
 
  FIND_PATH(PARMETIS_INCLUDE_DIR parmetis.h
FIND_PATH(PARMETIS_INCLUDE_DIR parmetis.h
    /usr/local/include
  /usr/local/include
    /usr/include
  /usr/include
  )
)
 
 
  FIND_LIBRARY(PARMETIS_LIBRARY parmetis
FIND_LIBRARY(PARMETIS_LIBRARY parmetis
    /usr/local/lib
  /usr/local/lib
    /usr/lib
  /usr/lib
  )
)
 
 
  FIND_LIBRARY(METIS_LIBRARY metis
FIND_LIBRARY(METIS_LIBRARY metis
    /usr/local/lib
  /usr/local/lib
    /usr/lib
  /usr/lib
  )
)
 
 
  IF(PARMETIS_INCLUDE_DIR)
IF(PARMETIS_INCLUDE_DIR)
    IF(PARMETIS_LIBRARY)
  IF(PARMETIS_LIBRARY)
      SET( PARMETIS_LIBRARIES ${PARMETIS_LIBRARY} ${METIS_LIBRARY})
    SET( PARMETIS_LIBRARIES ${PARMETIS_LIBRARY} ${METIS_LIBRARY})
      SET( PARMETIS_FOUND "YES" )
    SET( PARMETIS_FOUND "YES" )
    ENDIF(PARMETIS_LIBRARY)
  ENDIF(PARMETIS_LIBRARY)
  ENDIF(PARMETIS_INCLUDE_DIR)
ENDIF(PARMETIS_INCLUDE_DIR)
</pre>
</pre>



Revision as of 21:04, 20 April 2018

Back


#
# Find the PARMETIS includes and libraries
#
# ParMETIS is an MPI-based parallel library that implements a variety of algorithms for 
# partitioning unstructured graphs, meshes, and for computing fill-reducing orderings of 
# sparse matrices. It can be found at:
# 	http://www-users.cs.umn.edu/~karypis/metis/parmetis/index.html
#
# PARMETIS_INCLUDE_DIR - where to find autopack.h
# PARMETIS_LIBRARIES   - List of fully qualified libraries to link against.
# PARMETIS_FOUND       - Do not attempt to use if "no" or undefined.

FIND_PATH(PARMETIS_INCLUDE_DIR parmetis.h
  /usr/local/include
  /usr/include
)

FIND_LIBRARY(PARMETIS_LIBRARY parmetis
  /usr/local/lib
  /usr/lib
)

FIND_LIBRARY(METIS_LIBRARY metis
  /usr/local/lib
  /usr/lib
)

IF(PARMETIS_INCLUDE_DIR)
  IF(PARMETIS_LIBRARY)
    SET( PARMETIS_LIBRARIES ${PARMETIS_LIBRARY} ${METIS_LIBRARY})
    SET( PARMETIS_FOUND "YES" )
  ENDIF(PARMETIS_LIBRARY)
ENDIF(PARMETIS_INCLUDE_DIR)

Back



CMake: [Welcome | Site Map]