Coder Social home page Coder Social logo

Comments (6)

albinahlback avatar albinahlback commented on September 17, 2024

Sure, can you pinpoint a routine for a generic GPU would outperform or have equal performance to a routine for a generic CPU? Moreover, how would you go about tuning for vastly different architechtures? What API would you use for the GPU?

from flint.

edgarcosta avatar edgarcosta commented on September 17, 2024

GPU parallelization comes from SIMD, and the range of algorithms that can take advantage of such a paradigm is limited.
CPUs also make use of SIMD, but usually when one says multiple cores, one thinks of MIMD, each core is following its own set of instructions.

I think the most obvious place to take advantage of GPUs is linear algebra over small fields, as Magma does:
https://magma.maths.usyd.edu.au/magma/handbook/text/61#611

from flint.

fredrik-johansson avatar fredrik-johansson commented on September 17, 2024

It should already be possible to do GPU-accelerated linear algebra by linking FLINT to a GPU-backed BLAS. I don't recall anyone reporting trying this.

from flint.

albinahlback avatar albinahlback commented on September 17, 2024

I'm just not comfortable trying this from a build-system perspective. Perhaps we should bring this up at the workshop?

from flint.

fredrik-johansson avatar fredrik-johansson commented on September 17, 2024

In theory, there shouldn't be anything for us to do, just the user specifying --with-blas with something like NVBLAS installed on the system.

from flint.

Cyclopropinon avatar Cyclopropinon commented on September 17, 2024

i've looked around on the internet and found arrayfire, wich does some interesting stuff.
i dont really know tho if it has stuff like integer multiplication.
ive heard of integer multiplication (of very large numbers) being able to be broken down into very many similar operations, so maybe it is possible also with SIMD.

from flint.

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.