mirror of
https://github.com/DarthAffe/StableDiffusion.NET.git
synced 2025-12-12 13:28:35 +00:00
Hopefully fixed CUDA 11 build
This commit is contained in:
parent
7bd8fe77f3
commit
5e0760715c
58
.github/workflows/backends.yml
vendored
58
.github/workflows/backends.yml
vendored
@ -30,8 +30,6 @@ jobs:
|
|||||||
defines: '-DGGML_AVX2=ON -DSD_BUILD_SHARED_LIBS=ON'
|
defines: '-DGGML_AVX2=ON -DSD_BUILD_SHARED_LIBS=ON'
|
||||||
- build: 'avx512'
|
- build: 'avx512'
|
||||||
defines: '-DGGML_AVX512=ON -DSD_BUILD_SHARED_LIBS=ON'
|
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'
|
- build: 'cuda12'
|
||||||
defines: '-DSD_CUBLAS=ON -DSD_BUILD_SHARED_LIBS=ON'
|
defines: '-DSD_CUBLAS=ON -DSD_BUILD_SHARED_LIBS=ON'
|
||||||
- build: 'rocm5'
|
- build: 'rocm5'
|
||||||
@ -48,17 +46,6 @@ jobs:
|
|||||||
ref: '${{ github.event.inputs.commit }}'
|
ref: '${{ github.event.inputs.commit }}'
|
||||||
submodules: recursive
|
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
|
- name: Install cuda-toolkit
|
||||||
id: cuda-toolkit-12
|
id: cuda-toolkit-12
|
||||||
if: ${{ matrix.build == 'cuda12' }}
|
if: ${{ matrix.build == 'cuda12' }}
|
||||||
@ -116,6 +103,51 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: windows-${{ matrix.build }}
|
name: windows-${{ matrix.build }}
|
||||||
path: .\build\bin\stable-diffusion.dll
|
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:
|
windows-sycl:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user