GithubHelp home page GithubHelp logo

Comments (5)

damianmoz avatar damianmoz commented on June 26, 2024 1

This works:

proc fftplanfactors(n : uint(?w), ufr : [?uD] uint(w))
{
   // use uint(w) within the routine
...
}

This fails:

proc fftplanfactors(ufr : [?uD] uint(?w), n : uint(w))
{
   // use uint(w) within the routine
...
}

Hope this helps.

from chapel.

dlongnecke-cray avatar dlongnecke-cray commented on June 26, 2024 1

It's kind of silly, but I'm just going to extend the current cloning we do today to apply to [?d] int(?w) as well. In the future when the new frontend is the resolver we won't have to do any of this nonsense.

from chapel.

dlongnecke-cray avatar dlongnecke-cray commented on June 26, 2024

It looks like fixupArrayFormal in normalize is just straight up deleting the type query?! What the heck...

It's a strange order of operations error... fixupArrayFormal is supposed to replace any mentions of the array element type with arr.eltType, but that deletes the type query...

We currently do this strange "stamping out" in the production compiler where any time we encounter int(?w) we stamp out overloads where w is replaced by each int width. However, this doesn't seem to happen properly when the int(?w) is an array formal's element type e.g., [?d] int(?w). Is this just because this was a pattern we couldn't write in previous releases?

The question is whether or not we stamp out overloads for this array type case as well or if we just leave it generic and see what happens...

from chapel.

bradcray avatar bradcray commented on June 26, 2024

Thanks for filing this @damianmoz, and for improving the state of things, @dlongnecke-cray! Damian, if you get a chance to try out the fix in your code, please let us know if you're seeing the expected behavior now.

from chapel.

damianmoz avatar damianmoz commented on June 26, 2024

Next week. Thanks

from chapel.

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.