Ormlis's blog

By Ormlis, history, 8 months ago, In English

I don't know much about compilers. So I'm interested in hearing from those in the know. Why is avx2 no longer available in the new C++20 compiler on Codeforces?

https://mirror.codeforces.com/contest/4/submission/252556092

  • Vote: I like it
  • +31
  • Vote: I do not like it

»
8 months ago, # |
  Vote: I like it +5 Vote: I do not like it

There has been some post about this (forgot link); basically you need to do the #pragma GCC targets after you include STL headers. The headers don't work nicely with AVX.

»
8 months ago, # |
  Vote: I like it +7 Vote: I do not like it

It's a bug introduced in gcc 13. Bugzilla post