Comments (5)
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.
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.
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.
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.
Next week. Thanks
from chapel.
Related Issues (20)
- Can we constrain where nested functions with outer variables can be called? HOT 8
- | reducing a set fails when + reducing it succeeds HOT 1
- Map.keys() and .values() parallel iterators? HOT 1
- 'partial instantiation without ?' warning turns `compilerError` from `error:` to `note:`
- Unable to call extern with varargs within gpuized loop HOT 1
- Record variable considered const inside forall? HOT 4
- question about implication of `const` intent on finding applicable candidates HOT 6
- Have `const` errors due to field writes of shadow variables mention shadow variable nature
- libChplFrontendShared.so contains a reference to the build folder in its RPATH HOT 6
- Cannot infer return type for simple recursive function with literal base case HOT 6
- LLVM debug symbols require `--savec` to be useful HOT 1
- LinearAlgebra Solve() changes input array, gives wrong answer HOT 9
- checking for modification of domain during array access
- odd error about chpl__tuple_blank.
- dyno: relying on `isQueryRunning` in field genericity code seems incorrect HOT 1
- Write to `stderr` without exception handling HOT 2
- split init fails if both parts of initializing conditional initialize to iterator expressions HOT 1
- sqrt and --no-ieee-float mystery on SLES 12
- Compiler error for `integral` type with `--baseline`
- Problem with Absolute Value of Floating Point PARAM HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chapel.