Comments (2)
I fixed this and added your example to the testsuite.
from loopvectorization.jl.
Interesting problem, thanks.
@_avx
instead of @avx
also works. @avx
calls a generated function (which can use extra type information to make better decisions), while @_avx
just transforms the loops (making a few default assumptions about what types there probably are).
There seems to be a mistranslation of the loop as it gets passed to the generated function, but also a problem in the elimination of redundant loads, currently getting confused by the "i + 1" indexing (which is why a_re[i + 1]
and a_im[i+1]
only once, as in your second example, works).
I'm still looking into what exactly is going wrong, but I hope to clean this up and fix it fairly soon.
from loopvectorization.jl.
Related Issues (20)
- Error caused by `Static.StaticInt` not being an `Integer` HOT 5
- Segmentation fault for `PermutedDimsArray` with `ndims > 8` HOT 3
- `@turbo` and destructuring assignments HOT 1
- vmapreduce: no method matching reduce_to_onevec HOT 1
- Julia keyword `local` not supported by `@turbo`
- Slowdown with views in 0.12.119 HOT 26
- LoopVectorization fails with Tullio and HybridArrays HOT 2
- Preventing `StackOverflowError` automatically with a `@safe_turbo`? HOT 6
- LLVM error when using PackageCompiler HOT 9
- no method matching `add_constant!(::LoopSet, ::Val{2}, ::Int)` HOT 1
- Document `safe=true` and make it the default? HOT 1
- Regression in version 0.12.130 HOT 4
- Using @turbo with FowardDiff.Dual for logsumexp HOT 6
- [email protected] and up warns about `check_args` for the same code HOT 4
- Unexpected `NaN` result HOT 1
- A possible typo in `cdot_swizzle` HOT 2
- Can you see the complete assembly-code for a function? HOT 14
- LV keeps crushing during benchmarking HOT 5
- Plain for loop faster than @turbo HOT 5
- Error with large number of array references HOT 6
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 loopvectorization.jl.