]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
test-backend-ops: improve msvc build time (llama/18209)
authorJeff Bolz <redacted>
Sat, 20 Dec 2025 19:45:45 +0000 (13:45 -0600)
committerGeorgi Gerganov <redacted>
Wed, 31 Dec 2025 10:39:43 +0000 (12:39 +0200)
tests/test-backend-ops.cpp

index 53c172fd00384741a5f807f9719bf181a122dc36..dd011e52fb7cd62b4db63fc292b43f3da1f021d2 100644 (file)
@@ -6710,6 +6710,11 @@ static const ggml_type other_types[] = {
     GGML_TYPE_BF16,
 };
 
+#ifdef _MSC_VER
+// Workaround long compile time with msvc
+#pragma optimize("", off)
+#endif
+
 // Test cases for evaluation: should try to cover edge cases while using small input sizes to keep the runtime low
 static std::vector<std::unique_ptr<test_case>> make_test_cases_eval() {
     std::vector<std::unique_ptr<test_case>> test_cases;
@@ -7996,6 +8001,9 @@ static std::vector<std::unique_ptr<test_case>> make_test_cases_eval() {
 
     return test_cases;
 }
+#ifdef _MSC_VER
+#pragma optimize("", on)
+#endif
 
 // Test cases for performance evaluation: should be representative of real-world use cases
 static std::vector<std::unique_ptr<test_case>> make_test_cases_perf() {