FIAS . Impressum . Privacy

Vc::currentImplementationSupported() fails

Matthias Kretz [please enable javascript to see the address]
Tue May 2 21:54:51 CEST 2017


On Dienstag, 2. Mai 2017 19:19:48 CEST Kay F. Jahnke wrote:
> Am 02.05.2017 um 13:30 schrieb Matthias Kretz:
> > I think you're seeing this because AVX512 is not
> > implemented on master. Can you try compiling for AVX2 and running on an
> > older system? That should give you your expected error message.
> 
> I tried on my laptop. There I compiled with -mavx2, and it can only
> handle AVX. same effect:
> 
> Ungültiger Maschinenbefehl (Speicherabzug geschrieben)
> (illegal instruction, core dumped)
[...]
> That must be what it's doing - I'll try and narrow it down some more,
> then get in touch again. Maybe there's some code which is executed
> before main, could that be it?

Yes. E.g. all dynamic initializers of global variables would run before main. 
E.g. if you have global Vc::Vector objects that might be the reason.

You can run the application in gdb and produce a backtrace on SIGILL. Call 
`disassemble` to have gdb print the instructions it just executed. Let me know 
where it happens, maybe there's something I can do in Vc.

Cheers,
  Matthias

-- 
──────────────────────────────────────────────────────────────────────────
 Dr. Matthias Kretz                                https://kretzfamily.de
 GSI Helmholtzzentrum für Schwerionenforschung             https://gsi.de
 SIMD easy and portable                     https://github.com/VcDevel/Vc
──────────────────────────────────────────────────────────────────────────


More information about the Vc mailing list
FIAS . Impressum . Privacy