mirror of
https://github.com/DarthAffe/StableDiffusion.NET.git
synced 2025-12-12 13:28:35 +00:00
Added vulkan backend build
This commit is contained in:
parent
f9886433b6
commit
ec4d85c0d6
14
.github/workflows/backends.yml
vendored
14
.github/workflows/backends.yml
vendored
@ -16,6 +16,9 @@ jobs:
|
|||||||
windows:
|
windows:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
||||||
|
env:
|
||||||
|
VULKAN_VERSION: 1.3.261.1
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
@ -33,6 +36,8 @@ jobs:
|
|||||||
defines: '-DSD_CUBLAS=ON -DSD_BUILD_SHARED_LIBS=ON'
|
defines: '-DSD_CUBLAS=ON -DSD_BUILD_SHARED_LIBS=ON'
|
||||||
- build: 'rocm5'
|
- build: 'rocm5'
|
||||||
defines: '-G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DSD_HIPBLAS=ON -DCMAKE_BUILD_TYPE=Release -DAMDGPU_TARGETS="gfx1100;gfx1102;gfx1030" -DSD_BUILD_SHARED_LIBS=ON'
|
defines: '-G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DSD_HIPBLAS=ON -DCMAKE_BUILD_TYPE=Release -DAMDGPU_TARGETS="gfx1100;gfx1102;gfx1030" -DSD_BUILD_SHARED_LIBS=ON'
|
||||||
|
- build: 'vulkan'
|
||||||
|
defines: "-DSD_VULKAN=ON -DSD_BUILD_SHARED_LIBS=ON"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@ -79,6 +84,15 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
version: 1.11.1
|
version: 1.11.1
|
||||||
|
|
||||||
|
- name: Install Vulkan SDK
|
||||||
|
id: get_vulkan
|
||||||
|
if: ${{ matrix.build == 'vulkan' }}
|
||||||
|
run: |
|
||||||
|
curl.exe -o $env:RUNNER_TEMP/VulkanSDK-Installer.exe -L "https://sdk.lunarg.com/sdk/download/${env:VULKAN_VERSION}/windows/VulkanSDK-${env:VULKAN_VERSION}-Installer.exe"
|
||||||
|
& "$env:RUNNER_TEMP\VulkanSDK-Installer.exe" --accept-licenses --default-answer --confirm-command install
|
||||||
|
Add-Content $env:GITHUB_ENV "VULKAN_SDK=C:\VulkanSDK\${env:VULKAN_VERSION}"
|
||||||
|
Add-Content $env:GITHUB_PATH "C:\VulkanSDK\${env:VULKAN_VERSION}\bin"
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
id: cmake_build
|
id: cmake_build
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
28
Backends/StableDiffusion.NET.Backend.Vulkan.nuspec
Normal file
28
Backends/StableDiffusion.NET.Backend.Vulkan.nuspec
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<package>
|
||||||
|
<metadata>
|
||||||
|
<id>StableDiffusion.NET.Backend.Vulkan</id>
|
||||||
|
<version>$version$</version>
|
||||||
|
<title>StableDiffusion.NET.Backend.Vulkan</title>
|
||||||
|
<authors>Darth Affe & stable-diffusion.cpp Authors</authors>
|
||||||
|
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
||||||
|
<license type="expression">MIT</license>
|
||||||
|
<icon>sd_net_vulkan.png</icon>
|
||||||
|
<projectUrl>https://github.com/DarthAffe/StableDiffusion.NET</projectUrl>
|
||||||
|
<description>Vulkan-Backend for StableDiffusion.NET.</description>
|
||||||
|
<releaseNotes></releaseNotes>
|
||||||
|
<copyright>Copyright © Darth Affe 2024</copyright>
|
||||||
|
<readme>readme.md</readme>
|
||||||
|
</metadata>
|
||||||
|
|
||||||
|
<files>
|
||||||
|
<file src="StableDiffusion.NET.Backend.props" target="build/net8.0/StableDiffusion.NET.Backend.Vulkan.props" />
|
||||||
|
|
||||||
|
<file src="windows-vulkan/stable-diffusion.dll" target="runtimes\win-x64\native\vulkan\stable-diffusion.dll" />
|
||||||
|
|
||||||
|
<file src="sd_net_vulkan.png" target="sd_net_vulkan.png" />
|
||||||
|
<file src="readme.md" target="readme.md" />
|
||||||
|
<file src="ggml.txt" target="ggml.txt" />
|
||||||
|
<file src="stable-diffusion.cpp.txt" target="stable-diffusion.cpp.txt" />
|
||||||
|
</files>
|
||||||
|
</package>
|
||||||
BIN
Backends/sd_net_vulkan.png
Normal file
BIN
Backends/sd_net_vulkan.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 432 KiB |
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user