You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if [[ $target == x86_64* ]]; then # Restricting PYTORCH_QNNPACK to x86_64: Adapted from https://salsa.debian.org/deeplearning-team/pytorch/-/blob/master/debian/rules
56
60
cmake_extra_args+="-DUSE_PYTORCH_QNNPACK=ON "
57
61
else
58
62
cmake_extra_args+="-DUSE_PYTORCH_QNNPACK=OFF "
59
63
fi
60
64
61
-
if [[ $target == aarch64-linux-gnu* || $target == *-w64-mingw32* || $target == *-freebsd* ]]; then
65
+
if [[ $target == aarch64-linux-gnu* # Disabled use of breakpad on aarch64-linux-gnu: Fails to build embedded breakpad library.
66
+
|| $target == *-w64-mingw32* # Disabling breakpad enables configure on Windows - in combination with pytorch-aten-qnnpack-cmake-windows.patch
67
+
|| $target == *-freebsd*
68
+
]]; then
62
69
cmake_extra_args+="-DUSE_BREAKPAD=OFF "
63
70
else
64
71
cmake_extra_args+="-DUSE_BREAKPAD=ON "
65
72
fi
66
73
67
-
if [[ $target == *-linux-musl*
74
+
if [[ $target == *-linux-musl* # Disabled use of TensorPipe on linux-musl: Fails to build embedded TensorPipe library.
68
75
|| $target == *-w64-mingw32* # TensorPipe cannot be used on Windows
69
76
]]; then
70
77
cmake_extra_args+="-DUSE_TENSORPIPE=OFF "
@@ -81,9 +88,9 @@ if [[ $target != arm-* && $target == *-linux-musl* ]]; then
81
88
cmake_extra_args+="-DUSE_SYSTEM_GLOO=ON "
82
89
fi
83
90
84
-
if [[ $target == aarch64-linux-* # A compiler with AVX512 support is required for FBGEM
85
-
|| $target == arm-linux-* # A compiler with AVX512 support is required for FBGEM
86
-
|| $target == i686-linux-* # x64 operating system is required for FBGEMM
91
+
if [[ $target == aarch64-* # A compiler with AVX512 support is required for FBGEM
92
+
|| $target == arm-* # A compiler with AVX512 support is required for FBGEM
93
+
|| $target == i686-* # x64 operating system is required for FBGEMM
filter!(p ->!(Sys.islinux(p) && libc(p) =="musl"), platforms) # musl fails due to conflicting declaration of C function ‘void __assert_fail(const char*, const char*, int, const char*) - between /opt/x86_64-linux-musl/x86_64-linux-musl/include/c++/8.1.0/cassert:44 and /opt/x86_64-linux-musl/x86_64-linux-musl/sys-root/usr/include/assert.h
195
202
filter!(!Sys.iswindows, platforms) # ONNX does not support cross-compiling for w64-mingw32 on linux
203
+
filter!(p -> arch(p) !="armv6l", platforms) # armv6l is not supported by XNNPACK
204
+
filter!(p -> arch(p) !="armv7l", platforms) # armv7l is not supported by XNNPACK
196
205
filter!(p -> arch(p) !="powerpc64le", platforms) # PowerPC64LE is not supported by XNNPACK
197
-
filter!(p ->!(Sys.isapple(p) && arch(p) =="aarch64"), platforms) # aarch64-apple not supported by CPUInfo_jll v0.0.20200612 referenced by XNNPACK_jll v0.0.20200323
0 commit comments