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 4087596 commit 0640427Copy full SHA for 0640427
CMakeLists.txt
@@ -413,6 +413,7 @@ if (LLAMA_CUDA)
413
list(APPEND GGML_SOURCES_CUDA "ggml-cuda.cu")
414
415
add_compile_definitions(GGML_USE_CUDA)
416
+ add_compile_definitions(GGML_ALLOW_CUDA_GRAPHS)
417
if (LLAMA_CUDA_FORCE_DMMV)
418
add_compile_definitions(GGML_CUDA_FORCE_DMMV)
419
endif()
ggml-cuda.cu
@@ -2405,7 +2405,7 @@ GGML_CALL static void ggml_backend_cuda_synchronize(ggml_backend_t backend) {
2405
GGML_UNUSED(backend);
2406
}
2407
2408
-#if (CUDART_VERSION >= 12000)
+#if (CUDART_VERSION >= 12000) && defined(GGML_ALLOW_CUDA_GRAPHS)
2409
#define USE_CUDA_GRAPH
2410
#endif
2411
0 commit comments