You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gluten.apache.org by "ajeyabsfujitsu (via GitHub)" <gi...@apache.org> on 2025/01/04 08:32:00 UTC
[I] Builds of Velox fail in system with ARM-SVE but Builds of Gluten do not [incubator-gluten]
ajeyabsfujitsu opened a new issue, #8423:
URL: https://github.com/apache/incubator-gluten/issues/8423
### Problem description
While building Velox on a system with ARM-SVE, the build fails due to a lack of explicit support for SVE in Velox, which is understandable since Velox's documentation does not mention SVE support.
However, when using Gluten, which relies on Velox as its backend, the build does not fail, even though no SVE-related code exists in Gluten itself.
I would like to know these:
1) Why does Gluten not fail to build when Velox (the backend) does, given the same system configuration?
2) If SVE-related optimizations are added to Gluten code repo, would the build still succeed, or would it encounter issues due to Velox's lack of support for SVE?
### System information
Architecture: aarch64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: ARM
Model: 1
Thread(s) per core: 1
Core(s) per socket: 16
Socket(s): 1
Stepping: r1p1
BogoMIPS: 2100.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp
cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha51
2 sve asimdfhm dit uscat ilrcpc flagm ssbs paca pacg dcpodp svei
8mm svebf16 i8mm bf16 dgh rng
Gluten Version: 1.3.0-SNAPSHOT
Commit: Not in a git repo.
CMake Version: 3.28.3
System: Linux-6.8.0-1021-aws
Arch: aarch64
CPU Name:
C++ Compiler: /usr/bin/c++
C++ Compiler Version: 11.4.0
C Compiler: /usr/bin/cc
C Compiler Version: 11.4.0
CMake Prefix Path: /usr/local;/usr;/;/usr/local/lib/python3.10/dist-packages/cmake/data;/usr/local;/usr/X11R6;/usr/pkg;/opt
### CMake log
_No response_
--
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-unsubscribe@gluten.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org
Re: [I] Builds of Velox fail in system with ARM-SVE but Builds of Gluten do not [incubator-gluten]
Posted by "ajeyabsfujitsu (via GitHub)" <gi...@apache.org>.
ajeyabsfujitsu commented on issue #8423:
URL: https://github.com/apache/incubator-gluten/issues/8423#issuecomment-2572348349
@FelixYBW could you please tell me where these flags have been modified?
--
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-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org
Re: [I] Builds of Velox fail in system with ARM-SVE but Builds of Gluten do not [incubator-gluten]
Posted by "FelixYBW (via GitHub)" <gi...@apache.org>.
FelixYBW commented on issue #8423:
URL: https://github.com/apache/incubator-gluten/issues/8423#issuecomment-2572600640
> @FelixYBW could you please tell me where these flags have been modified? Should I reference CMakeLists file?
I don't know the specific flags. I think the easiest way is to output the gcc flags during you build Gluten and Velox then compare the two. You may get the flag by setting CMAKE_EXPORT_COMPILE_COMMANDS
--
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-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org
Re: [I] Builds of Velox fail in system with ARM-SVE but Builds of Gluten do not [incubator-gluten]
Posted by "ajeyabsfujitsu (via GitHub)" <gi...@apache.org>.
ajeyabsfujitsu commented on issue #8423:
URL: https://github.com/apache/incubator-gluten/issues/8423#issuecomment-2572821327
@FelixYBW I tried generating flags for Velox and Gluten both from compile_commands.json file. The mismatch seems to be huge, as in, Velox has a lot of flags. Do you see any major difference I should look out for in the two files attached?
[velox_flags.txt](https://github.com/user-attachments/files/18318166/velox_flags.txt)
[gluten_flags.txt](https://github.com/user-attachments/files/18318167/gluten_flags.txt)
--
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-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org
Re: [I] Builds of Velox fail in system with ARM-SVE but Builds of Gluten do not [incubator-gluten]
Posted by "FelixYBW (via GitHub)" <gi...@apache.org>.
FelixYBW commented on issue #8423:
URL: https://github.com/apache/incubator-gluten/issues/8423#issuecomment-2573568507
@zhouyuan Looks we have many flags not defined, some one like CTZ is useful. Do you know where we disable them?
-DHAVE_BUILTIN_CTZ
-DHAVE_BUILTIN_CTZLL
-DHAVE_POSIX_MEMALIGN
-DHAVE_VISIBILITY_HIDDEN
-DHAVE_VISIBILITY_INTERNAL
-DOPENSSL_BACKEND_USED
-DUNALIGNED64_OK
-DUNALIGNED_OK
-DWITH_GZFILEOP
-DZLIB_COMPAT
@ajeyabsfujitsu Thank you for your dumped configs. It's the first time I carefully compare the difference.
--
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-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org
Re: [I] Builds of Velox fail in system with ARM-SVE but Builds of Gluten do not [incubator-gluten]
Posted by "FelixYBW (via GitHub)" <gi...@apache.org>.
FelixYBW commented on issue #8423:
URL: https://github.com/apache/incubator-gluten/issues/8423#issuecomment-2571413674
Gluten's build flag is different from Velox's default one, we modified it. You may compare the gcc flags of the same file which fails in Velox but successes in Gluten.
If you add SVE code to Gluten, you need to add `#ifdef SVE` to make sure the non-SVE build can success.
--
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-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org
Re: [I] Builds of Velox fail in system with ARM-SVE but Builds of Gluten do not [incubator-gluten]
Posted by "FelixYBW (via GitHub)" <gi...@apache.org>.
FelixYBW commented on issue #8423:
URL: https://github.com/apache/incubator-gluten/issues/8423#issuecomment-2573527963
> @FelixYBW I tried generating flags for Velox and Gluten both from compile_commands.json file. The mismatch seems to be huge, as in, Velox has a lot of flags. Do you see any major difference I should look out for in the two files attached?
Below flags are set in your velox build but not defined in Gluten. Which means Gluten doesn't enable these support. It's the reason.
-DARM_FEATURES
-DARM_NEON_ADLER32
-DARM_NEON_CHUNKSET
-DARM_NEON_SLIDEHASH
-DARM_ACLE_CRC_HASH
-DARM_AUXV_HAS_CRC32
--
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-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org
Re: [I] Builds of Velox fail in system with ARM-SVE but Builds of Gluten do not [incubator-gluten]
Posted by "ajeyabsfujitsu (via GitHub)" <gi...@apache.org>.
ajeyabsfujitsu commented on issue #8423:
URL: https://github.com/apache/incubator-gluten/issues/8423#issuecomment-2573611679
> > @FelixYBW I tried generating flags for Velox and Gluten both from compile_commands.json file. The mismatch seems to be huge, as in, Velox has a lot of flags. Do you see any major difference I should look out for in the two files attached?
>
> Below flags are set in your velox build but not defined in Gluten. Which means Gluten doesn't enable these support. It's the reason.
>
> -DARM_FEATURES -DARM_NEON_ADLER32 -DARM_NEON_CHUNKSET -DARM_NEON_SLIDEHASH -DARM_ACLE_CRC_HASH -DARM_AUXV_HAS_CRC32
Got it. Thank you.
--
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-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org