Skip to content

Commit eea9a9a

Browse files
authored
Merge pull request #29 from DarthAffe/DarthAffe-patch-1
Hopefully fixed CUDA 11 build
2 parents 7bd8fe7 + 5e07607 commit eea9a9a

File tree

1 file changed

+45
-13
lines changed

1 file changed

+45
-13
lines changed

.github/workflows/backends.yml

Lines changed: 45 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ jobs:
3030
defines: '-DGGML_AVX2=ON -DSD_BUILD_SHARED_LIBS=ON'
3131
- build: 'avx512'
3232
defines: '-DGGML_AVX512=ON -DSD_BUILD_SHARED_LIBS=ON'
33-
- build: 'cuda11'
34-
defines: '-DSD_CUBLAS=ON -DSD_BUILD_SHARED_LIBS=ON -DCMAKE_CUDA_FLAGS="-allow-unsupported-compiler"'
3533
- build: 'cuda12'
3634
defines: '-DSD_CUBLAS=ON -DSD_BUILD_SHARED_LIBS=ON'
3735
- build: 'rocm5'
@@ -48,17 +46,6 @@ jobs:
4846
ref: '${{ github.event.inputs.commit }}'
4947
submodules: recursive
5048

51-
- name: Install cuda-toolkit
52-
id: cuda-toolkit-11
53-
if: ${{ matrix.build == 'cuda11' }}
54-
uses: Jimver/[email protected]
55-
with:
56-
cuda: '11.8.0'
57-
method: network
58-
sub-packages: '["nvcc", "cudart", "cublas", "cublas_dev", "thrust", "visual_studio_integration"]'
59-
use-github-cache: false
60-
use-local-cache: false
61-
6249
- name: Install cuda-toolkit
6350
id: cuda-toolkit-12
6451
if: ${{ matrix.build == 'cuda12' }}
@@ -116,6 +103,51 @@ jobs:
116103
with:
117104
name: windows-${{ matrix.build }}
118105
path: .\build\bin\stable-diffusion.dll
106+
107+
windows-2019:
108+
runs-on: windows-2019
109+
110+
strategy:
111+
matrix:
112+
include:
113+
- build: 'cuda11'
114+
defines: '-DSD_CUBLAS=ON -DSD_BUILD_SHARED_LIBS=ON -DCMAKE_CUDA_FLAGS="-allow-unsupported-compiler"'
115+
116+
steps:
117+
- name: Checkout
118+
id: checkout
119+
uses: actions/[email protected]
120+
with:
121+
repository: 'leejet/stable-diffusion.cpp'
122+
ref: '${{ github.event.inputs.commit }}'
123+
submodules: recursive
124+
125+
- name: Install cuda-toolkit
126+
id: cuda-toolkit-11
127+
if: ${{ matrix.build == 'cuda11' }}
128+
uses: Jimver/[email protected]
129+
with:
130+
cuda: '11.8.0'
131+
method: network
132+
sub-packages: '["nvcc", "cudart", "cublas", "cublas_dev", "thrust", "visual_studio_integration"]'
133+
use-github-cache: false
134+
use-local-cache: false
135+
136+
- name: Build
137+
id: cmake_build
138+
run: |
139+
mkdir build
140+
cd build
141+
cmake .. ${{ matrix.defines }}
142+
cmake --build . --config Release
143+
144+
- name: Upload artifact
145+
id: upload_artifact
146+
if: ${{ matrix.build != 'rocm5' }}
147+
uses: actions/[email protected]
148+
with:
149+
name: windows-${{ matrix.build }}
150+
path: .\build\bin\Release\stable-diffusion.dll
119151

120152
windows-sycl:
121153
runs-on: windows-latest

0 commit comments

Comments
 (0)