Commit a4f36456 authored by Your Name's avatar Your Name

Disable Vulkan via VK_ICD_FILENAMES when using CUDA for sd.cpp

When --backend nvidia is used, set VK_ICD_FILENAMES=/dev/null
to completely disable Vulkan and force CUDA-only mode for sd.cpp
parent ad852d97
......@@ -3675,6 +3675,8 @@ async def create_image_generation(request: ImageGenerationRequest):
if use_cuda:
print(f"Using CUDA backend for sd.cpp image generation")
# Disable Vulkan to force CUDA only
os.environ['VK_ICD_FILENAMES'] = '/dev/null'
else:
print(f"Using Vulkan backend for sd.cpp image generation")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment