max@0: # - Find AMD's ACMLMP library (no includes) which provides optimised and parallelised BLAS and LAPACK functions max@0: # This module defines max@0: # ACMLMP_LIBRARIES, the libraries needed to use ACMLMP. max@0: # ACMLMP_FOUND, If false, do not try to use ACMLMP. max@0: # also defined, but not for general use are max@0: # ACMLMP_LIBRARY, where to find the ACMLMP library. max@0: max@0: SET(ACMLMP_NAMES ${ACMLMP_NAMES} acml_mp) max@0: FIND_LIBRARY(ACMLMP_LIBRARY max@0: NAMES ${ACMLMP_NAMES} max@0: PATHS /usr/lib64 /usr/lib /usr/*/lib64 /usr/*/lib /usr/*/gfortran64_mp/lib/ /usr/*/gfortran32_mp/lib/ /usr/local/lib64 /usr/local/lib /opt/lib64 /opt/lib /opt/*/lib64 /opt/*/lib /opt/*/gfortran64_mp/lib/ /opt/*/gfortran32_mp/lib/ max@0: ) max@0: max@0: IF (ACMLMP_LIBRARY) max@0: SET(ACMLMP_LIBRARIES ${ACMLMP_LIBRARY}) max@0: SET(ACMLMP_FOUND "YES") max@0: ELSE (ACMLMP_LIBRARY) max@0: SET(ACMLMP_FOUND "NO") max@0: ENDIF (ACMLMP_LIBRARY) max@0: max@0: max@0: IF (ACMLMP_FOUND) max@0: IF (NOT ACMLMP_FIND_QUIETLY) max@0: MESSAGE(STATUS "Found the ACMLMP library: ${ACMLMP_LIBRARIES}") max@0: ENDIF (NOT ACMLMP_FIND_QUIETLY) max@0: ELSE (ACMLMP_FOUND) max@0: IF (ACMLMP_FIND_REQUIRED) max@0: MESSAGE(FATAL_ERROR "Could not find the ACMLMP library") max@0: ENDIF (ACMLMP_FIND_REQUIRED) max@0: ENDIF (ACMLMP_FOUND) max@0: max@0: # Deprecated declarations. max@0: GET_FILENAME_COMPONENT (NATIVE_ACMLMP_LIB_PATH ${ACMLMP_LIBRARY} PATH) max@0: max@0: MARK_AS_ADVANCED( max@0: ACMLMP_LIBRARY max@0: )