max@0: # - Find AMD's ACML library (no includes) which provides optimised BLAS and LAPACK functions max@0: # This module defines max@0: # ACML_LIBRARIES, the libraries needed to use ACML. max@0: # ACML_FOUND, If false, do not try to use ACML. max@0: # also defined, but not for general use are max@0: # ACML_LIBRARY, where to find the ACML library. max@0: max@0: SET(ACML_NAMES ${ACML_NAMES} acml) max@0: FIND_LIBRARY(ACML_LIBRARY max@0: NAMES ${ACML_NAMES} max@0: PATHS /usr/lib64 /usr/lib /usr/*/lib64 /usr/*/lib /usr/*/gfortran64/lib/ /usr/*/gfortran32/lib/ /usr/local/lib64 /usr/local/lib /opt/lib64 /opt/lib /opt/*/lib64 /opt/*/lib /opt/*/gfortran64/lib/ /opt/*/gfortran32/lib/ max@0: ) max@0: max@0: IF (ACML_LIBRARY) max@0: SET(ACML_LIBRARIES ${ACML_LIBRARY}) max@0: SET(ACML_FOUND "YES") max@0: ELSE (ACML_LIBRARY) max@0: SET(ACML_FOUND "NO") max@0: ENDIF (ACML_LIBRARY) max@0: max@0: max@0: IF (ACML_FOUND) max@0: IF (NOT ACML_FIND_QUIETLY) max@0: MESSAGE(STATUS "Found the ACML library: ${ACML_LIBRARIES}") max@0: ENDIF (NOT ACML_FIND_QUIETLY) max@0: ELSE (ACML_FOUND) max@0: IF (ACML_FIND_REQUIRED) max@0: MESSAGE(FATAL_ERROR "Could not find the ACML library") max@0: ENDIF (ACML_FIND_REQUIRED) max@0: ENDIF (ACML_FOUND) max@0: max@0: # Deprecated declarations. max@0: GET_FILENAME_COMPONENT (NATIVE_ACML_LIB_PATH ${ACML_LIBRARY} PATH) max@0: max@0: MARK_AS_ADVANCED( max@0: ACML_LIBRARY max@0: )