Code Monkey home page Code Monkey logo

Comments (3)

dev-zero avatar dev-zero commented on May 27, 2024

will wait for the libxsmm-1.10 release featuring a pkg-config file to implement the libxsmm-check libxsmm/libxsmm#269 then the following should be enough to properly detect libxsmm and get the required flags:

find_package(PkgConfig REQUIRED)

if (WITH_SMM STREQUAL "libxsmm")
  pkg_check_modules(LIBXSMM REQUIRED libxsmm)
elseif (WITH_SMM STREQUAL "libsmm")
  ...
elseif (WITH_SMM STREQUAL "libsmm")

endif ()

[...]

target_link_libraries(dbcsr PUBLIC ${LIBXSMM_LIBRARIES})
target_compile_options(dbcsr PUBLIC ${LIBXSMM_CFLAGS_OTHER})

@alazzaro do we want a quad-state WITH_SMM=auto (default), WITH_SMM=blas, WITH_SMM=libxsmm, WITH_SMM=libsmm with auto trying to discover and use libxsmm, libsmm automatically if found or should we just use blas as the default and only do detection if the user specifies -DWITH_SMM=lib(x)smm?

from dbcsr.

alazzaro avatar alazzaro commented on May 27, 2024

I would prefer the latter solution. In principle, libsmm is not suggested (unless they are using no-x86 platform), while I must admit in most cases MKL is already doing a good job (therefore libxsmm is not needed)... We will make clear this point in the documentation...

from dbcsr.

dev-zero avatar dev-zero commented on May 27, 2024

good, the latter solution is also the easier one 👍

from dbcsr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.