Comments (10)
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.
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.
Which compiler & what version of it are you using?
from fbgemm.
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.
Hmm, but to be fair, FBGEMM cmake scripts should detect whether AVX512 support is available and skip respective codeparts
from fbgemm.
General AVX512 support is available but it seems gcc 5.4 has missing intrinsic APIs.
from fbgemm.
@malfet, do we build Pytorch with gcc 5.4 in CI?
from fbgemm.
@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.
@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.
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)
- Support MacOS? HOT 1
- `.to("meta")` is leaked to the public main branch in the tests. HOT 2
- Can't compile FBGEMM with GCC 12.3.0 HOT 3
- compiling FBGEMM for ARM HOT 3
- How `partition_avx512` is auto-tuned? HOT 3
- Compiling on windows with mingw
- Error importing fbgemm_gpu HOT 15
- nvcc fatal : Unknown option '-mavx' HOT 5
- Build failure on MacOS HOT 6
- momentum for SGD/Adagrad HOT 2
- RuntimeError: No such operator fbgemm::jagged_2d_to_dense HOT 3
- Having issue installing FBGEMM-gpu on MacOS HOT 8
- Latest FBGEMM doesn't build with latest PyTorch HOT 1
- fbgemm_gpu doesn't build for CPU because impl_abstract_pystub is not found HOT 1
- [FBGEMM_GPU Question] When should I use FusedEmbeddingBagCollection over EmbeddingBagCollection?
- [Question] What does device / embedding_specs.compute_device parameter in ctor of TBE mean? HOT 4
- AttributeError: '_OpNamespace' 'fbgemm' object has no attribute 'jagged_2d_to_dense' HOT 5
- Building error after C++20 HOT 2
- quantize_embeddings + KeyedJaggedTensor+ vbe cannot work
- AttributeError: '_OpNamespace' 'fbgemm' object has no attribute 'jagged_2d_to_dense' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fbgemm.