diff --git a/.github/workflows/backends.yml b/.github/workflows/backends.yml index 12138bb..05b9748 100644 --- a/.github/workflows/backends.yml +++ b/.github/workflows/backends.yml @@ -535,6 +535,7 @@ jobs: - windows-hip - windows-vulkan - linux-cpu + - linux-wulkan - linux-cuda12 - linux-sycl - linux-hip diff --git a/Backends/StableDiffusion.NET.Backend.Vulkan.nuspec b/Backends/StableDiffusion.NET.Backend.Vulkan.nuspec index 0f9057c..414cae0 100644 --- a/Backends/StableDiffusion.NET.Backend.Vulkan.nuspec +++ b/Backends/StableDiffusion.NET.Backend.Vulkan.nuspec @@ -19,6 +19,7 @@ + diff --git a/StableDiffusion.NET/Backends/VulkanBackend.cs b/StableDiffusion.NET/Backends/VulkanBackend.cs index 0fa5097..f5d5caa 100644 --- a/StableDiffusion.NET/Backends/VulkanBackend.cs +++ b/StableDiffusion.NET/Backends/VulkanBackend.cs @@ -13,7 +13,7 @@ public class VulkanBackend : IBackend public int Priority { get; set; } = 5; - public bool IsAvailable => RuntimeInformation.IsOSPlatform(OSPlatform.Windows) + public bool IsAvailable => (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) || RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) && (RuntimeInformation.OSArchitecture == Architecture.X64); public string PathPart => "vulkan";