jojorne 1 год назад
Родитель
Сommit
84f6de17f6
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      sgemm.cpp

+ 2 - 0
sgemm.cpp

@@ -43,8 +43,10 @@
 // [1] J. Tunney, ‘LLaMA Now Goes Faster on CPUs’, Mar. 2024. [Online].
 // [1] J. Tunney, ‘LLaMA Now Goes Faster on CPUs’, Mar. 2024. [Online].
 //     Available: https://justine.lol/matmul/. [Accessed: 29-Mar-2024].
 //     Available: https://justine.lol/matmul/. [Accessed: 29-Mar-2024].
 
 
+#if defined(__GNUC__)
 #pragma GCC diagnostic ignored "-Wpedantic"
 #pragma GCC diagnostic ignored "-Wpedantic"
 #pragma GCC diagnostic ignored "-Wignored-attributes"
 #pragma GCC diagnostic ignored "-Wignored-attributes"
+#endif
 
 
 #include "sgemm.h"
 #include "sgemm.h"
 #include "ggml-impl.h"
 #include "ggml-impl.h"