Coder Social home page Coder Social logo

Comments (7)

bondhugula avatar bondhugula commented on June 15, 2024

The Clan frontend can't parse the declaration inside. You can use the Pet frontend (--pet) to deal with it. However, you'll run into another issue with the accesses (i*n_a_rows+k and others will be seen as non-affine ones) since there's no dimension lifting / delinearization support. So you'll have to use 2-d arrays if you want the dependence analysis here to work (i.e., m[i][j] += a[i][k]*b[k][j]).

from pluto.

lahwaacz avatar lahwaacz commented on June 15, 2024
$ polycc --pet --tile --parallel matmul.c -o matmul
/stuff/pluto/src/pluto: unrecognized option '--pet'

from pluto.

bondhugula avatar bondhugula commented on June 15, 2024

The --pet option is only available in the 'pet' branch of the git. (You'll also need LLVM/Clang 3.4 for this). In any case, if it's rewritten in a way such that those accesses become affine, you'll be able to run it even without --pet.

from pluto.

lahwaacz avatar lahwaacz commented on June 15, 2024

Then why are things like this in the master branch?

from pluto.

bondhugula avatar bondhugula commented on June 15, 2024

Thanks for reporting - fixed.

from pluto.

lahwaacz avatar lahwaacz commented on June 15, 2024

There are a couple more of those: https://github.com/bondhugula/pluto/search?utf8=%E2%9C%93&q=--pet&type=

from pluto.

bondhugula avatar bondhugula commented on June 15, 2024

Including benchmarks that needed --pet in the master branch was an oversight as well. Dropped now. Thanks.

from pluto.

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.