We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 930c506 commit 367e703Copy full SHA for 367e703
CMakeLists.txt
@@ -505,6 +505,12 @@ if (LLAMA_VULKAN)
505
506
add_compile_definitions(GGML_USE_VULKAN)
507
508
+ # Workaround to the "can't dereference invalidated vector iterator" bug in clang-cl debug build
509
+ # Posssibly relevant: https://stackoverflow.com/questions/74748276/visual-studio-no-displays-the-correct-length-of-stdvector
510
+ if (MSVC AND CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
511
+ add_compile_definitions(_ITERATOR_DEBUG_LEVEL=0)
512
+ endif()
513
+
514
if (LLAMA_VULKAN_CHECK_RESULTS)
515
add_compile_definitions(GGML_VULKAN_CHECK_RESULTS)
516
endif()
0 commit comments