Giter Site home page Giter Site logo

Comments (2)

yehudaorel avatar yehudaorel commented on June 7, 2024

Hi @wells-wei-wei,

Regarding implementation of dnnl_gemm_bf16bf16f32, the recommended interface for this internal GEMM API call is via a MatMul primitive.

Please reference the solution provided here, as well as this example demonstrating MatMul as a replacement for sGEMM functions for additional details.

But when I use it, I find dnnl_gemm_bf16bf16f32 is much slower than dnnl_sgemm, why is that? I'm sure the host cpu support avx512_bf16, is this because I didn't add some options during build time?

In general without Intel AMX support, bf16 gemm based ops have little to no performance gain depending on problem shape/HW/etc., which might explain your results.

Could you run the workload with the following environment variable: ONEDNN_VERBOSE=all and share the output? this will tell you specific supported ISA's and primitive dispatch information.

Additional information such as problem size/shape, CPU, OS will be helpful!

from onednn.

vpirogov avatar vpirogov commented on June 7, 2024

@wells-wei-wei, in addition to what @yehudaorel shared there's an example that benchmarks and reports matmul primitive performance with various data types.

from onednn.

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.