Ormlis's blog

By Ormlis, history, 7 weeks 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

»
7 weeks 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.

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

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