69
69
with :
70
70
submodules : recursive
71
71
72
- - name : Install cuda-toolkit
73
- id : cuda-toolkit
74
- if : ${{ matrix.build == 'cuda12' }}
75
- uses : Jimver/cuda-toolkit@v0.2.11
76
- with :
77
- cuda : " 12.2.0"
78
- method : " network"
79
- sub-packages : ' ["nvcc", "cudart", "cublas", "cublas_dev", "thrust", "visual_studio_integration"]'
80
-
81
- - name : Install rocm-toolkit
82
- id : rocm-toolkit
83
- if : ${{ matrix.build == 'rocm5.5' }}
84
- uses : Cyberhan123/rocm-toolkit@v0.1.0
85
- with :
86
- rocm : " 5.5.0"
87
-
88
- - name : Install Ninja
89
- id : install-ninja
90
- if : ${{ matrix.build == 'rocm5.5' }}
91
- uses : urkle/action-get-ninja@v1
92
- with :
93
- version : 1.11.1
94
72
- name : Install Vulkan SDK
95
73
id : get_vulkan
96
74
if : ${{ matrix.build == 'vulkan' }}
@@ -107,20 +85,7 @@ jobs:
107
85
cd build
108
86
cmake .. ${{ matrix.defines }}
109
87
cmake --build . --config Release
110
-
111
- - name : Check AVX512F support
112
- id : check_avx512f
113
- if : ${{ matrix.build == 'avx512' }}
114
- continue-on-error : true
115
- run : |
116
- cd build
117
- $vcdir = $(vswhere -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath)
118
- $msvc = $(join-path $vcdir $('VC\Tools\MSVC\'+$(gc -raw $(join-path $vcdir 'VC\Auxiliary\Build\Microsoft.VCToolsVersion.default.txt')).Trim()))
119
- $cl = $(join-path $msvc 'bin\Hostx64\x64\cl.exe')
120
- echo 'int main(void){unsigned int a[4];__cpuid(a,7);return !(a[1]&65536);}' >> avx512f.c
121
- & $cl /O2 /GS- /kernel avx512f.c /link /nodefaultlib /entry:main
122
- .\avx512f.exe && echo "AVX512F: YES" && ( echo HAS_AVX512F=1 >> $env:GITHUB_ENV ) || echo "AVX512F: NO"
123
-
88
+
124
89
- name : Get commit hash
125
90
id : commit
126
91
if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
@@ -146,23 +111,6 @@ jobs:
146
111
}
147
112
7z a sd-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-win-${{ matrix.build }}-x64.zip $filePath
148
113
149
- - name : Copy and pack Cuda runtime
150
- id : pack_cuda_runtime
151
- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' && matrix.build == 'cuda12' ) || github.event.inputs.create_release == 'true' }}
152
- run : |
153
- echo "Cuda install location: ${{steps.cuda-toolkit.outputs.CUDA_PATH}}"
154
- $dst='.\build\bin\cudart\'
155
- robocopy "${{steps.cuda-toolkit.outputs.CUDA_PATH}}\bin" $dst cudart64_*.dll cublas64_*.dll cublasLt64_*.dll
156
- 7z a cudart-sd-bin-win-cu12-x64.zip $dst\*
157
-
158
- - name : Upload Cuda runtime
159
- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' && matrix.build == 'cuda12' ) || github.event.inputs.create_release == 'true' }}
160
- uses : actions/upload-artifact@v4
161
- with :
162
- name : sd-cudart-sd-bin-win-cu12-x64.zip
163
- path : |
164
- cudart-sd-bin-win-cu12-x64.zip
165
-
166
114
- name : Upload artifacts
167
115
if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
168
116
uses : actions/upload-artifact@v4
0 commit comments