-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NEON detection on aarch64 / TX1 #766
Comments
if you can send a patch to FindARM.cmake to work for armv8, it would be much appreciated. |
Thanks Soumith. Try these patches below for FindARM.cmake and lib/TH/CMakeLists are a bit crude, because I still define NEON cflags directive on ARMv8 (but without -mfpu=neon) so it compiles the rest of the code normally: FindARM-patch.txt Let me know if/when you commit to master so I can re-build from master. |
Did a pull today 10/14/2016. There is still are problems on the X1 build. (1) /pkg/torch/lib/TH/CMakeLists.txt Not sure how to resolve #3? Ideas? -Rich |
Replacing the ../luarocks make with ../luarocks install resolves the memory issues with the problematic rocks such as cutorch. The rock specs in the distribution need to be refreshed. |
@rtarquini fixed via torch/cutorch@ac40c05 |
@rtarquini can you post your ThVector.c? I'm getting invalid assembly instructions too after forcing NEON_FOUND with latest pull. |
ThVector.c includes ./vector/NEON.c. That is the file with the mods. |
Thanks @rtarquini, I got master building on aarch64 again with the file. On TX1 it still requires swap and enough disk space in /tmp for me with jopts=1, when cutorch begins compiling large templates in THCTensorMathPointwise.cu. |
Installation on TX1 still breaks (fixed with the two patches and the new |
While trying out on aarch64 platform i am still getting these errors. |
@hit1001, you need to |
@Atcold if you hav ea solution to this, can you please send in a PR? I dont have an AArch64 to test out, and hence was unable to fix it myself. |
Oh, OK. I didn't know @soumith. |
@Atcold, i am trying to install torch/distro. so the files you mentioned lies in /pkg/torch/TH .. |
@Atcold i would appreciate it if you send a PR so that folks dont need to manually apply this patch. I cant create the PR, as I cannot test the ARM64 side. |
@soumith, I am not the author of the code. I've just used @dusty-nv and @rtarquini work. Shall I send a PR citing the authors? I am also not aware if this breaks anything else. |
yes, please do. we will catch other issues in contbuild |
Torch is failing to build on ARMv8 (Tegra X1) under Ubuntu 16.04 aarch64.
During configuration:
-- Could not find hardware support for NEON on this machine.
Then while building:
It looks like FindARM.cmake searches /proc/cpuinfo for 'neon'. However, ARMv8 output is the following:
It appears like other [1][2] ARMv8 platforms may also list
asimd
in leui ofneon
in their/proc/cpuinfo
.The text was updated successfully, but these errors were encountered: