leezu commented on issue #17045: Relocation truncation issues
URL: 
https://github.com/apache/incubator-mxnet/issues/17045#issuecomment-564420739
 
 
   To solve this, I think we can instruct the compiler to always use 64 bit 
relocations instead of 32 bit relocations (that may overflow), use `-O2` (or in 
the extreme case `-Os`) instead of `-O3` to reduce code bloat or use some 
linker relaxation techniques.
   
   Using `-O2` may be faster than our current `-O3`, as code bloat can slow 
down the program more than any speed-up from the additional optimizations in 
`-O3`, but this requires investigation.
   
   > Compiling with -O3 is not a guaranteed way to improve performance, and in 
fact, in many cases, can slow down a system due to larger binaries and 
increased memory usage. -O3 is also known to break several packages. Using -O3 
is not recommended. However, it also enables -ftree-vectorize so that loops in 
the code get vectorized and will use AVX YMM registers.
   
   https://wiki.gentoo.org/wiki/GCC_optimization#-O

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to