Giter Site home page Giter Site logo

Comments (3)

gajanan-choudhary avatar gajanan-choudhary commented on September 24, 2024 1

@cwpearson, you are right. oneapi::mkl::sparse::optimize_gemv() was a no-op for previous versions of oneMKL. Last few releases, though, it stopped being a no-op. In the current release of oneMKL (2024.0), if you expect to call oneapi::mkl::sparse::gemv() only a single time with a given matrix handle then, calling oneapi::mkl::sparse::optimize_gemv() would very likely be detrimental to performance, and you could remove that optimize_gemv() call. The cost of the call to optimize_gemv() is generally amortized over multiple calls to gemv() with the same matrix handle (e.g., you call optimize_gemv() once, followed by say, a hundred gemv() calls). The oneMKL team will try reducing the cost of optimize_gemv() in a future oneMKL release.

from kokkos-kernels.

cwpearson avatar cwpearson commented on September 24, 2024 1

Thank you @gajanan-choudhary! We have a PR in progress to remove optimize_gemv for our Aurora users. We are considering a two-phase SpMV API, and would revisit this, but it does not exist yet.

from kokkos-kernels.

gajanan-choudhary avatar gajanan-choudhary commented on September 24, 2024

Hi @cwpearson, just a quick update: I recently worked on trying to improve the performance of oneapi::mkl::sparse:;optimize_gemv(). I was able to significantly improve the performance (at least for "non-tiny" matrices) for the sycl::buffer APIs. Some bottleneck still exists in the USM APIs that we are still trying to figure out. These improvements will pop up in the oneMKL 2024.2 release (not the upcoming 2024.1 release) in a few months.

We will continue looking into improving the performance of both optimize_gemv and one-shot sparse::gemv() without optimize_gemv() in future releases.

from kokkos-kernels.

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.