Giter Site home page Giter Site logo

Comments (10)

dskhudia avatar dskhudia commented on May 22, 2024 2

Actually just searched about it a bit more and found that it's a gcc bug. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79932
Essentially the code works if compiled under -Og, -O2, or -O3 but fails with -O0.

The fix is back ported to gcc 5.5 but not to 5.4.

from fbgemm.

dskhudia avatar dskhudia commented on May 22, 2024 1

Seems like gcc 5.4 doesn't have the intrinsic _mm256_cmpge_epi32_mask implemented.

Code containing _mm256_cmpge_epi32_mask works with 5.5 but doesn't with gcc 5.4 : https://godbolt.org/z/f5bsrrjW1

Could you use a more recent version of compiler?

from fbgemm.

imaginary-person avatar imaginary-person commented on May 22, 2024

Which compiler & what version of it are you using?

from fbgemm.

zengzengsun avatar zengzengsun commented on May 22, 2024

Which compiler & what version of it are you using?

here is my compiler info:
g++ (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609

from fbgemm.

malfet avatar malfet commented on May 22, 2024

Hmm, but to be fair, FBGEMM cmake scripts should detect whether AVX512 support is available and skip respective codeparts

from fbgemm.

dskhudia avatar dskhudia commented on May 22, 2024

General AVX512 support is available but it seems gcc 5.4 has missing intrinsic APIs.

from fbgemm.

dskhudia avatar dskhudia commented on May 22, 2024

@malfet, do we build Pytorch with gcc 5.4 in CI?

from fbgemm.

malfet avatar malfet commented on May 22, 2024

@dskhudia, no we do not, but it doesn't mean we should not check wether or not compiler extensions we want to use is available.

from fbgemm.

dskhudia avatar dskhudia commented on May 22, 2024

@malfet Agreed. Just want to make sure that the minimum version of gcc supported by PyTorch is also supported by FBGEMM. Do you happen to know the minimum version of gcc supported by PyTorch?

from fbgemm.

zengzengsun avatar zengzengsun commented on May 22, 2024

Actually just searched about it a bit more and found that it's a gcc bug. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79932
Essentially the code works if compiled under -Og, -O2, or -O3 but fails with -O0.

The fix is back ported to gcc 5.5 but not to 5.4.

@dskhudia yes~ you're right. I was just going to tell you that the issue is only happened in debug building.
Thanks all guys for this issue

from fbgemm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.