Блог пользователя Ormlis

Автор Ormlis, история, 2 месяца назад, По-английски

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

  • Проголосовать: нравится
  • +31
  • Проголосовать: не нравится

»
2 месяца назад, # |
  Проголосовать: нравится +5 Проголосовать: не нравится

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.

»
2 месяца назад, # |
  Проголосовать: нравится +7 Проголосовать: не нравится

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