chapel icon indicating copy to clipboard operation
chapel copied to clipboard

Support 'var' intent on gpuizables loop

Open stonea opened this issue 5 months ago • 1 comments

Currently we error out (saying that var intents aren't supported for foreach) if you attempt something like this:

foreach i in 1..100 with (var x = new MyThing()) { } 

But this might be a useful way of making a thread-private variable for a gpuizable loop (which might be useful in cases where @gpu.itersPerThread is not 1).

stonea avatar Sep 20 '24 23:09 stonea