]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
Do not include arm_neon.h when compiling CUDA code (ggml/1028)
authorFrankie Robertson <redacted>
Tue, 26 Nov 2024 13:50:26 +0000 (15:50 +0200)
committerGeorgi Gerganov <redacted>
Sun, 8 Dec 2024 18:14:35 +0000 (20:14 +0200)
ggml/src/ggml-impl.h

index 3965be78755a1a3d24aa59c36df67c230f5cd43e..f39b7a88c8c4b46c6e1b0018e543b236a678a339 100644 (file)
@@ -14,7 +14,7 @@
 #include <arm_sve.h>
 #endif // __ARM_FEATURE_SVE
 
-#if defined(__ARM_NEON)
+#if defined(__ARM_NEON) && !defined(__CUDACC__)
 // if YCM cannot find <arm_neon.h>, make a symbolic link to it, for example:
 //
 //   $ ln -sfn /Library/Developer/CommandLineTools/usr/lib/clang/13.1.6/include/arm_neon.h ./src/