Re: [eigen] patch to add ACML support to BTL

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]



Hi Victor,

thanks a lot for the patch.
applied in rev 935462, the syr2 header will follow in a second.

so what's your conclusion, is ACML as good as MKL ?

cheers,
gael


On Thu, Mar 5, 2009 at 8:24 AM, Victor <flyaway1212@xxxxxxxxx> wrote:
Hi.
Please find attached a patch that fixes some inconsistencies in C_BLAS
interface and adds btl_acml test as well as a FindACML.cmake file (to be
put in bench/cmake). Please double check the patch file as I've
commented out a couple of lines to make it build on my machine - there
seem to be some missing headers in bench/btl/actions, namely I suspect
action_ssyr2.

Sincerely,
Victor Prosolin.

# include(FindLibraryWithDebug)

if (ACML_INCLUDES AND ACML_LIBRARIES)
 set(ACML_FIND_QUIETLY TRUE)
endif (ACML_INCLUDES AND ACML_LIBRARIES)

find_path(ACML_INCLUDES
 NAMES
 acml.h
 PATHS
 $ENV{ACMLDIR}/include
 $ENV{ACML_DIR}/include
 ${INCLUDE_INSTALL_DIR}
)

find_library(ACML_LIBRARIES
 NAMES
 acml_mp acml_mv
 PATHS
 $ENV{ACMLDIR}/lib
 $ENV{ACML_DIR}/lib
 ${LIB_INSTALL_DIR}
)

find_file(ACML_LIBRARIES
 NAMES
 libacml_mp.so
 PATHS
 /usr/lib
 $ENV{ACMLDIR}/lib
 ${LIB_INSTALL_DIR}
)

if(NOT ACML_LIBRARIES)
   message(STATUS "Multi-threaded library not found, looking for single-threaded")
   find_library(ACML_LIBRARIES
       NAMES
       acml acml_mv
       PATHS
       $ENV{ACMLDIR}/lib
       $ENV{ACML_DIR}/lib
       ${LIB_INSTALL_DIR}
       )
   find_file(ACML_LIBRARIES
       libacml.so libacml_mv.so
       PATHS
       /usr/lib
       $ENV{ACMLDIR}/lib
       ${LIB_INSTALL_DIR}
       )
endif()




include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(ACML DEFAULT_MSG
                                 ACML_INCLUDES ACML_LIBRARIES)

mark_as_advanced(ACML_INCLUDES ACML_LIBRARIES)




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/