89
89
- name : Run Python unit tests
90
90
run : pytest python
91
91
92
- build-macos-cpu :
92
+ build-macos :
93
93
strategy :
94
94
matrix :
95
95
cxx : [clang++, g++-12]
@@ -135,6 +135,54 @@ jobs:
135
135
run : ctest
136
136
working-directory : build
137
137
138
+ build-wheels-cuda11x :
139
+ runs-on : ubuntu-22.04
140
+ if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
141
+ steps :
142
+ - uses : actions/checkout@v3
143
+ with :
144
+ submodules : true
145
+ - name : Build wheels
146
+
147
+ env :
148
+ CIBW_BUILD : cp3*-manylinux_x86_64
149
+ CIBW_BEFORE_ALL_LINUX : >
150
+ yum-config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel7/x86_64/cuda-rhel7.repo &&
151
+ yum install -y cuda-compiler-11-8 libcublas-devel-11-8 cuda-cudart-devel-11-8 cuda-driver-devel-11-8
152
+ CIBW_TEST_SKIP : " *"
153
+ CIBW_ENVIRONMENT : >
154
+ CMAKE_ARGS='-DKEDM_ENABLE_GPU=ON -DKokkos_ARCH_VOLTA70=ON'
155
+ PATH=/usr/local/cuda/bin:$PATH
156
+ KEDM_PACKAGE_NAME=kedm-cuda11x
157
+ CIBW_REPAIR_WHEEL_COMMAND_LINUX : auditwheel repair -w {dest_dir} --exclude libcublas.so.11 --exclude libcublasLt.so.11 --exclude libcuda.so.1 {wheel}
158
+ - uses : actions/upload-artifact@v3
159
+ with :
160
+ path : ./wheelhouse/*.whl
161
+
162
+ build-wheels-cuda12x :
163
+ runs-on : ubuntu-22.04
164
+ if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
165
+ steps :
166
+ - uses : actions/checkout@v3
167
+ with :
168
+ submodules : true
169
+ - name : Build wheels
170
+
171
+ env :
172
+ CIBW_BUILD : cp3*-manylinux_x86_64
173
+ CIBW_BEFORE_ALL_LINUX : >
174
+ yum-config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel7/x86_64/cuda-rhel7.repo &&
175
+ yum install -y cuda-compiler-12-2 libcublas-devel-12-2 cuda-cudart-devel-12-2 cuda-driver-devel-12-2
176
+ CIBW_TEST_SKIP : " *"
177
+ CIBW_ENVIRONMENT : >
178
+ CMAKE_ARGS='-DKEDM_ENABLE_GPU=ON -DKokkos_ARCH_VOLTA70=ON'
179
+ PATH=/usr/local/cuda/bin:$PATH
180
+ KEDM_PACKAGE_NAME=kedm-cuda12x
181
+ CIBW_REPAIR_WHEEL_COMMAND_LINUX : auditwheel repair -w {dest_dir} --exclude libcublas.so.12 --exclude libcublasLt.so.12 --exclude libcuda.so.1 {wheel}
182
+ - uses : actions/upload-artifact@v3
183
+ with :
184
+ path : ./wheelhouse/*.whl
185
+
138
186
build-wheels :
139
187
strategy :
140
188
matrix :
@@ -147,7 +195,7 @@ jobs:
147
195
with :
148
196
submodules : true
149
197
- name : Build wheels
150
- uses : joerick/cibuildwheel@v2.12 .0
198
+ uses : joerick/cibuildwheel@v2.14 .0
151
199
env :
152
200
CIBW_BUILD : cp3*-manylinux_x86_64 cp3*-macosx*
153
201
CIBW_ARCHS_MACOS : x86_64 arm64
@@ -163,7 +211,7 @@ jobs:
163
211
path : ./wheelhouse/*.whl
164
212
165
213
publish-wheels :
166
- needs : [build-wheels]
214
+ needs : [build-wheels, build-wheels-cuda11x, build-wheels-cuda12x ]
167
215
runs-on : ubuntu-latest
168
216
if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
169
217
steps :
0 commit comments