# AVX illegal instruction in job submitted from PyROOT

**URL:** <https://root-forum.cern.ch/t/avx-illegal-instruction-in-job-submitted-from-pyroot/43761>\
**Category:** ROOT\
**Created:** [March 2, 2021, 1:23am UTC](https://root-forum.cern.ch/t/avx-illegal-instruction-in-job-submitted-from-pyroot/43761 "2021-03-02T01:23:08Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [April 13, 2021, 4:58pm UTC](https://root-forum.cern.ch/t/avx-illegal-instruction-in-job-submitted-from-pyroot/43761/15 "2021-04-13T16:58:42Z")

</div>

Note that, serious problems have been reported in [this thread](https://root-forum.cern.ch/t/error-calling-acts-through-dictionary/43802), when libraries built with and without “avx features” have been mixed:

> [@Error calling Acts through Dictionary](https://root-forum.cern.ch/t/error-calling-acts-through-dictionary/43802/14):
>
> Hi @clementhelsens @jalopezg, So I haven’t completely understood this issue yet, but at least I have a workaround that doesn’t force us to disable avx everywhere. So I was coming back to this after stumbling on a discussion of EXTRA\_CLING\_ARGS and avx, but disappointingly adding an -O3 -mavx there has no effect. Then I noticed that taking FCCAnalyses from the usual arch=broadwell stack, the reproducer runs fine - it is actually only when building FCCAnalyses locally that the segfault appears.…

@Axel So, the “cppyy backend” should be FORCED to use “avx features” if the ROOT itself was compiled with them (i.e., ROOT libraries). Otherwise, even if “`avx`” is present in the actual “`/proc/cpuinfo`”, they should NOT be used.

---

_[View the full topic](https://root-forum.cern.ch/t/avx-illegal-instruction-in-job-submitted-from-pyroot/43761)._
