PHILO-HE commented on PR #7956: URL: https://github.com/apache/incubator-gluten/pull/7956#issuecomment-2481831661
> Using `-march=native` ends up generating ASM code with `vmovdqu8` instructions when CPU supports AVX512, and makes it incompatible with older CPUs, forcing the build machine and run machine to be of same type. I explicitly passed `-mno-avx512f -mbmi2` but it didn't do anything and AVX512 instructions were still present in the ASM code. Any idea why it doesn't respect `-mno-avx512f`? @surnaik, `-mno-avx512f` only disables the subset of avx512 instructions. I recommend you to remove the use of `-march=native` in cross compilation and set correct target cpu for compiler. For example, you can set `-march=haswell` if haswell is used on your side. If your cluster has diverse cpu architectures, you can just use generic setting for compiler. Alternatively, to make the binary fully optimized for newer cpu architecture, I think you have to customize gluten build for different cpu architectures, instead of compiling once for universal use. -- 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. To unsubscribe, e-mail: commits-unsubscr...@gluten.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@gluten.apache.org For additional commands, e-mail: commits-h...@gluten.apache.org