test-backend-ops: improve msvc build time (#18209)

This commit is contained in:
Jeff Bolz 2025-12-20 13:45:45 -06:00 committed by GitHub
parent 10b4f82d44
commit 5182dd64cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 0 deletions

View File

@ -6710,6 +6710,11 @@ static const ggml_type other_types[] = {
GGML_TYPE_BF16, 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 // 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() { static std::vector<std::unique_ptr<test_case>> make_test_cases_eval() {
std::vector<std::unique_ptr<test_case>> test_cases; 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; return test_cases;
} }
#ifdef _MSC_VER
#pragma optimize("", on)
#endif
// Test cases for performance evaluation: should be representative of real-world use cases // 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() { static std::vector<std::unique_ptr<test_case>> make_test_cases_perf() {