Re: [julia-users] Do I have simd?

2015-11-18 Thread Yichao Yu
On Wed, Nov 18, 2015 at 5:44 PM, 'Greg Plowman' via julia-users wrote: > 1. Does simd work for Integer types? > > code_llvm shows vector.body section for Int16,Int32,Float32,Float64 but not > for Int64. (on my Windows 64 machine, Julia v0.4.1) > > Speedup is seen for

Re: [julia-users] Do I have simd?

2015-11-09 Thread DNF
On Monday, November 9, 2015 at 10:14:24 PM UTC+1, DNF wrote: > > Thanks a lot. That indeed works. > Oh, and by "that", I mean installing the Julia 0.4.1 app.

Re: [julia-users] Do I have simd?

2015-11-09 Thread Rob J. Goedman
Great! I just removed all of /usr/local/Cellar, did a full 'brew install julia’, but it still fails. Will file an issue. Regards, Rob > On Nov 9, 2015, at 1:15 PM, DNF wrote: > > On Monday, November 9, 2015 at 10:14:24 PM UTC+1, DNF wrote: > Thanks a lot. That indeed

Re: [julia-users] Do I have simd?

2015-11-09 Thread DNF
Thanks a lot. That indeed works. The speedup is not particularly large, and varies quite a bit, from 1.5 to 3 times speedup. But it *is* working, and code_llvm reports a vector block. Though performance isn't all that impressive, at least I know there is nothing fundamentally stopping the SIMD

Re: [julia-users] Do I have simd?

2015-11-09 Thread Rob J. Goedman
Hi DNF, Those instructions (if they help in all cases) only work if you build Julia yourself by cloning the Julia git repository. You have installed julia via homebrew. Unfortunately that route doesn’t work for me: ``` rob$ /usr/local/bin/julia Illegal instruction: 4 ``` I expect that maybe

Re: [julia-users] Do I have simd?

2015-11-08 Thread Rob J. Goedman
On another, slightly older system, I noticed similar (approximately identical) timings for the simd.jl test script using Julia 0.5:julia> include("/Users/rob/Projects/Julia/Rob/Julia/simd.jl")Julia Version 0.5.0-dev+720Commit 5920633* (2015-10-11 15:15 UTC)Platform Info:  System: Darwin

Re: [julia-users] Do I have simd?

2015-11-06 Thread Seth
Hi Rob, I built it (and openblas) myself (via git clone) since I'm testing out Cxx.jl. Xcode is Version 7.1 (7B91b). Seth. On Friday, November 6, 2015 at 3:54:04 PM UTC-8, Rob J Goedman wrote: > > Seth, > > You must have built Julia 0.4.1-pre yourself. Did you use brew? > > It looks like you

Re: [julia-users] Do I have simd?

2015-11-06 Thread Rob J. Goedman
Thanks Seth, That's the end of my first attempt to figure out what’s happening here. Back to the drawing board! Regards, Rob > On Nov 6, 2015, at 4:53 PM, Seth wrote: > > Hi Rob, > > I built it (and openblas) myself (via git clone) since I'm testing out > Cxx.jl.

Re: [julia-users] Do I have simd?

2015-11-06 Thread DNF
OK, wow! I tried following the advice in https://github.com/staticfloat/homebrew-julia specifically, $ brew rm gcc openblas-julia suite-sparse-julia arpack-julia $ brew install gcc openblas-julia suite-sparse-julia arpack-julia Now, there is a difference: the non-SIMD version is *much slower*

Re: [julia-users] Do I have simd?

2015-11-06 Thread Rob J. Goedman
Hi DNF, I get below results onJulia 0.5 (home-build) and Julia 0.4 (downloaded). A clear difference is the presence of a vector block in the output of ‘code_llvm(innersimd, Tuple{Vector{Float32},Vector{Float32}})' Regards, Rob > On Nov 6, 2015, at 3:53 AM, DNF wrote: > >

Re: [julia-users] Do I have simd?

2015-11-06 Thread Giuseppe Ragusa
I am pretty sure must something specific to your installation. On my machine ``` Darwin Kernel Version 14.5.0: Wed Jul 29 02:26:53 PDT 2015; RELEASE_X86_64 x86_64 ``` running the code, I get the following timings: ``` julia> timeit(1000,1000) GFlop= 2.4503017546610866 GFlop (SIMD) =

Re: [julia-users] Do I have simd?

2015-11-06 Thread DNF
On Friday, November 6, 2015 at 12:20:38 PM UTC+1, Giuseppe Ragusa wrote: > > I am pretty sure must something specific to your installation. > Do you mean my Julia installation?

Re: [julia-users] Do I have simd?

2015-11-06 Thread DNF
Thanks for the feedback. It seems like this is not a problem for most. If anyone has even the faintest clue where I could start looking for a solution to this, I would be grateful. Perhaps there is some software I could run that would detect hardware problems, or maybe I am missing software

Re: [julia-users] Do I have simd?

2015-11-06 Thread Rob J. Goedman
Hi DNF, In below versioninfo’s only libopenblas appears different. You installed using brew. The first thing I would try is to execute the steps under Common Issues listed on https://github.com/staticfloat/homebrew-julia . A bit further down on

Re: [julia-users] Do I have simd?

2015-11-05 Thread DNF
On Thursday, November 5, 2015 at 4:07:05 PM UTC+1, Yichao Yu wrote: > > You can check with `code_llvm(innersimd, > Tuple{Vector{Float32},Vector{Float32}})` > I tried it, and got this output, but don't know how to make sense of it *julia> **code_llvm(innersimd,

Re: [julia-users] Do I have simd?

2015-11-05 Thread DNF
I install using homebrew from here: https://github.com/staticfloat/homebrew-julia I have limited understanding of the process, but believe there is some compilation involved.

Re: [julia-users] Do I have simd?

2015-11-05 Thread Benjamin Deonovic
Did you compile julia from source or just grab a pre-compiled binary? On Thursday, November 5, 2015 at 3:22:28 PM UTC-6, DNF wrote: > > I see. Do you know if I need to install something to get SIMD support? > > According to this >

Re: [julia-users] Do I have simd?

2015-11-05 Thread Kristoffer Carlsson
If it got compiled with SIMD instructions it should have a vector body which it doesn't seem to have.

Re: [julia-users] Do I have simd?

2015-11-05 Thread DNF
I see. Do you know if I need to install something to get SIMD support? According to this review of my computer model: "Haswell chips also include new instructions enhancing SIMD vector

Re: [julia-users] Do I have simd?

2015-11-05 Thread Yichao Yu
On Thu, Nov 5, 2015 at 9:12 AM, DNF wrote: > I have been looking through the performance tips section of the manual. > Specifically, I am curious about @simd > (http://docs.julialang.org/en/release-0.4/manual/performance-tips/#performance-annotations). > > When I cut and paste

[julia-users] Do I have simd?

2015-11-05 Thread DNF
I have been looking through the performance tips section of the manual. Specifically, I am curious about @simd (http://docs.julialang.org/en/release-0.4/manual/performance-tips/#performance-annotations). When I cut and paste the code demonstrating the @simd macro, I don't get substantial