Re: [julia-users] Is FMA/Muladd Working Here?

2016-09-23 Thread Erik Schnetter
It should. Yes, please open an issue. -erik On Thu, Sep 22, 2016 at 7:46 PM, Chris Rackauckas wrote: > So, in the end, is `@fastmath` supposed to be adding FMA? Should I open an > issue? > > On Wednesday, September 21, 2016 at 7:11:14 PM UTC-7, Yichao Yu wrote: >> >> On

Re: [julia-users] Is FMA/Muladd Working Here?

2016-09-22 Thread Chris Rackauckas
So, in the end, is `@fastmath` supposed to be adding FMA? Should I open an issue? On Wednesday, September 21, 2016 at 7:11:14 PM UTC-7, Yichao Yu wrote: > > On Wed, Sep 21, 2016 at 9:49 PM, Erik Schnetter > wrote: > > I confirm that I can't get Julia to synthesize a

Re: [julia-users] Is FMA/Muladd Working Here?

2016-09-21 Thread Yichao Yu
On Wed, Sep 21, 2016 at 9:49 PM, Erik Schnetter wrote: > I confirm that I can't get Julia to synthesize a `vfmadd` instruction > either... Sorry for sending you on a wild goose chase. -march=haswell does the trick for C (both clang and gcc) the necessary bit for the machine

Re: [julia-users] Is FMA/Muladd Working Here?

2016-09-21 Thread Erik Schnetter
I confirm that I can't get Julia to synthesize a `vfmadd` instruction either... Sorry for sending you on a wild goose chase. -erik On Wed, Sep 21, 2016 at 9:33 PM, Yichao Yu wrote: > On Wed, Sep 21, 2016 at 9:29 PM, Erik Schnetter > wrote: > > On Wed,

Re: [julia-users] Is FMA/Muladd Working Here?

2016-09-21 Thread Yichao Yu
On Wed, Sep 21, 2016 at 9:33 PM, Yichao Yu wrote: > On Wed, Sep 21, 2016 at 9:29 PM, Erik Schnetter wrote: >> On Wed, Sep 21, 2016 at 9:22 PM, Chris Rackauckas >> wrote: >>> >>> I'm not seeing `@fastmath` apply fma/muladd. I rebuilt

Re: [julia-users] Is FMA/Muladd Working Here?

2016-09-21 Thread Yichao Yu
On Wed, Sep 21, 2016 at 9:29 PM, Erik Schnetter wrote: > On Wed, Sep 21, 2016 at 9:22 PM, Chris Rackauckas > wrote: >> >> I'm not seeing `@fastmath` apply fma/muladd. I rebuilt the sysimg and now >> I get results where g and h apply muladd/fma in the

Re: [julia-users] Is FMA/Muladd Working Here?

2016-09-21 Thread Chris Rackauckas
Still no FMA? julia> k(x) = @fastmath 2.4x + 3.0 WARNING: Method definition k(Any) in module Main at REPL[14]:1 overwritten at REPL[23]:1. k (generic function with 1 method) julia> @code_llvm k(4.0) ; Function Attrs: uwtable define double @julia_k_66737(double) #0 { top: %1 = fmul fast

Re: [julia-users] Is FMA/Muladd Working Here?

2016-09-21 Thread Erik Schnetter
On Wed, Sep 21, 2016 at 9:22 PM, Chris Rackauckas wrote: > I'm not seeing `@fastmath` apply fma/muladd. I rebuilt the sysimg and now > I get results where g and h apply muladd/fma in the native code, but a new > function k which is `@fastmath` inside of f does not apply

Re: [julia-users] Is FMA/Muladd Working Here?

2016-09-21 Thread Erik Schnetter
On Wed, Sep 21, 2016 at 1:56 AM, Chris Rackauckas wrote: > Hi, > First of all, does LLVM essentially fma or muladd expressions like > `a1*x1 + a2*x2 + a3*x3 + a4*x4`? Or is it required that one explicitly use > `muladd` and `fma` on these types of instructions (is there a

[julia-users] Is FMA/Muladd Working Here?

2016-09-20 Thread Chris Rackauckas
Hi, First of all, does LLVM essentially fma or muladd expressions like `a1*x1 + a2*x2 + a3*x3 + a4*x4`? Or is it required that one explicitly use `muladd` and `fma` on these types of instructions (is there a macro for making this easier)? Secondly, I am wondering if my setup is no applying