mirror of
https://github.com/DarthAffe/StableDiffusion.NET.git
synced 2025-12-13 05:48:40 +00:00
Compare commits
No commits in common. "eea9a9afe8bdd61b060b252c8e5a84d56b2fd5f1" and "7bd8fe77f3080fd7ef2c47c86067ba22d4f7f3f3" have entirely different histories.
eea9a9afe8
...
7bd8fe77f3
58
.github/workflows/backends.yml
vendored
58
.github/workflows/backends.yml
vendored
@ -30,6 +30,8 @@ jobs:
|
||||
defines: '-DGGML_AVX2=ON -DSD_BUILD_SHARED_LIBS=ON'
|
||||
- build: 'avx512'
|
||||
defines: '-DGGML_AVX512=ON -DSD_BUILD_SHARED_LIBS=ON'
|
||||
- build: 'cuda11'
|
||||
defines: '-DSD_CUBLAS=ON -DSD_BUILD_SHARED_LIBS=ON -DCMAKE_CUDA_FLAGS="-allow-unsupported-compiler"'
|
||||
- build: 'cuda12'
|
||||
defines: '-DSD_CUBLAS=ON -DSD_BUILD_SHARED_LIBS=ON'
|
||||
- build: 'rocm5'
|
||||
@ -46,6 +48,17 @@ jobs:
|
||||
ref: '${{ github.event.inputs.commit }}'
|
||||
submodules: recursive
|
||||
|
||||
- name: Install cuda-toolkit
|
||||
id: cuda-toolkit-11
|
||||
if: ${{ matrix.build == 'cuda11' }}
|
||||
uses: Jimver/cuda-toolkit@v0.2.14
|
||||
with:
|
||||
cuda: '11.8.0'
|
||||
method: network
|
||||
sub-packages: '["nvcc", "cudart", "cublas", "cublas_dev", "thrust", "visual_studio_integration"]'
|
||||
use-github-cache: false
|
||||
use-local-cache: false
|
||||
|
||||
- name: Install cuda-toolkit
|
||||
id: cuda-toolkit-12
|
||||
if: ${{ matrix.build == 'cuda12' }}
|
||||
@ -103,51 +116,6 @@ jobs:
|
||||
with:
|
||||
name: windows-${{ matrix.build }}
|
||||
path: .\build\bin\stable-diffusion.dll
|
||||
|
||||
windows-2019:
|
||||
runs-on: windows-2019
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
- build: 'cuda11'
|
||||
defines: '-DSD_CUBLAS=ON -DSD_BUILD_SHARED_LIBS=ON -DCMAKE_CUDA_FLAGS="-allow-unsupported-compiler"'
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
id: checkout
|
||||
uses: actions/checkout@v4.1.2
|
||||
with:
|
||||
repository: 'leejet/stable-diffusion.cpp'
|
||||
ref: '${{ github.event.inputs.commit }}'
|
||||
submodules: recursive
|
||||
|
||||
- name: Install cuda-toolkit
|
||||
id: cuda-toolkit-11
|
||||
if: ${{ matrix.build == 'cuda11' }}
|
||||
uses: Jimver/cuda-toolkit@v0.2.16
|
||||
with:
|
||||
cuda: '11.8.0'
|
||||
method: network
|
||||
sub-packages: '["nvcc", "cudart", "cublas", "cublas_dev", "thrust", "visual_studio_integration"]'
|
||||
use-github-cache: false
|
||||
use-local-cache: false
|
||||
|
||||
- name: Build
|
||||
id: cmake_build
|
||||
run: |
|
||||
mkdir build
|
||||
cd build
|
||||
cmake .. ${{ matrix.defines }}
|
||||
cmake --build . --config Release
|
||||
|
||||
- name: Upload artifact
|
||||
id: upload_artifact
|
||||
if: ${{ matrix.build != 'rocm5' }}
|
||||
uses: actions/upload-artifact@v4.3.1
|
||||
with:
|
||||
name: windows-${{ matrix.build }}
|
||||
path: .\build\bin\Release\stable-diffusion.dll
|
||||
|
||||
windows-sycl:
|
||||
runs-on: windows-latest
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user