# \`log\` calling \`fma\_emulated\` on hardware that doesn't need it

**URL:** <https://discourse.julialang.org/t/log-calling-fma-emulated-on-hardware-that-doesnt-need-it/132149>\
**Category:** Performance\
**Tags:** question\
**Created:** [September 7, 2025, 12:58am UTC](https://discourse.julialang.org/t/log-calling-fma-emulated-on-hardware-that-doesnt-need-it/132149 "2025-09-07T00:58:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cscherrer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cscherrer/32/7631_2.png) [@cscherrer](https://discourse.julialang.org/u/cscherrer)\
**Post date:** [September 7, 2025, 12:58am UTC](https://discourse.julialang.org/t/log-calling-fma-emulated-on-hardware-that-doesnt-need-it/132149/1 "2025-09-07T00:58:55Z")

</div>

Hi,

I was doing some profiling for an application and came across this for `log`

 ![image](https://global.discourse-cdn.com/julialang/original/3X/b/9/b928612e881be9d6e012bc8223b58765a2c1f94e.png)

It should be able to use the real FMA, not emulated. It’s a newish machine:

```julia-auto
julia> versioninfo()
Julia Version 1.11.6
Commit 9615af0f269 (2025-07-09 12:58 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 32 × AMD Ryzen 9 9950X 16-Core Processor
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, generic)
Threads: 16 default, 0 interactive, 8 GC (on 32 virtual cores)
Environment:
  JULIA_NUM_THREADS = 16
  LD_LIBRARY_PATH = /opt/cuda/lib64
  JULIA_PKG_USE_CLI_GIT = true

```

Is this a matter of `juliaup` only having a very generic build? Do I have to compile Julia myself to avoid this?

Also weird that I’ve never seen this come up before 🤔

---

<div class="post-metadata">

**Author:** ![Oscar\_Smith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oscar_smith/32/25343_2.png) [@Oscar\_Smith](https://discourse.julialang.org/u/Oscar_Smith)\
**Post date:** [September 7, 2025, 1:14am UTC](https://discourse.julialang.org/t/log-calling-fma-emulated-on-hardware-that-doesnt-need-it/132149/2 "2025-09-07T01:14:12Z")

</div>

Previous versions of Julia don’t know what zen5 is and so they think it’s old. If you launch Julia with `-c=Zen4` or something like that it should fix it. 1.12 detects zen5 properly, and in the future we should really start doing all our detection based of flags rather than names to avoid this better.

---

<div class="post-metadata">

**Author:** ![cscherrer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cscherrer/32/7631_2.png) [@cscherrer](https://discourse.julialang.org/u/cscherrer)\
**Post date:** [September 7, 2025, 1:43am UTC](https://discourse.julialang.org/t/log-calling-fma-emulated-on-hardware-that-doesnt-need-it/132149/3 "2025-09-07T01:43:47Z")

</div>

`julia -C znver4` works! Thanks @Oscar_Smith
