[julia-users] Re: @inbounds and @simd not showing any sign of speedup

2016-07-29 Thread Andreas Lobinger
Hello colleague, On Friday, July 29, 2016 at 8:59:36 AM UTC+2, Juan Lopez wrote: > > Hello, > > I have a function which is doing basically an operation inside a loop and > when adding @simd or @inbounds time doesn't improve, in any case it seems > slightly worse. > > Is there an explanation f

[julia-users] Re: @inbounds and @simd not showing any sign of speedup

2016-07-29 Thread Kristoffer Carlsson
It is likely because the ranges are not UnitRanges. On Friday, July 29, 2016 at 5:35:57 AM UTC-4, Andreas Lobinger wrote: > > Hello colleague, > > On Friday, July 29, 2016 at 8:59:36 AM UTC+2, Juan Lopez wrote: >> >> Hello, >> >> I have a function which is doing basically an operation inside a loo

[julia-users] Re: @inbounds and @simd not showing any sign of speedup

2016-07-29 Thread Valentin Churavy
A great tool to figuring out what is going on in these cases is `@code_llvm`. It shows you a representation of your code that is still readable, but very close to the machine. Your simple julia code without a `@simd` is nearly optimal, but does benefits from the inclusion of `@inbounds` -