@@ -145,14 +145,41 @@ jobs:
145145 yum install -y cuda-compiler-12-9 libcublas-devel-12-9 cuda-cudart-devel-12-9 cuda-driver-devel-12-9
146146 CIBW_TEST_SKIP : " *"
147147 CIBW_ENVIRONMENT : >
148- CMAKE_ARGS='-DKEDM_ENABLE_GPU=ON -DKokkos_ARCH_VOLTA70 =ON'
148+ CMAKE_ARGS='-DKEDM_ENABLE_GPU=ON -DKokkos_ARCH_AMPERE80 =ON'
149149 PATH=/usr/local/cuda/bin:$PATH
150150 CIBW_REPAIR_WHEEL_COMMAND_LINUX : auditwheel repair -w {dest_dir} --exclude libcublas.so.12 --exclude libcublasLt.so.12 --exclude libcuda.so.1 {wheel}
151151 - uses : actions/upload-artifact@v4
152152 with :
153153 name : wheels-cuda12x
154154 path : ./wheelhouse/*.whl
155155
156+ build-wheels-cuda13x :
157+ runs-on : ubuntu-22.04
158+ if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
159+ steps :
160+ - uses : actions/checkout@v4
161+ - name : Replace project name with kedm-cuda13x
162+ run : sed -i 's/name = "kedm"/name = "kedm-cuda13x"/' pyproject.toml
163+ - name : Build wheels
164+ uses : pypa/cibuildwheel@v3.3.0
165+ env :
166+ CIBW_BUILD : cp3*-manylinux_x86_64
167+ CIBW_SKIP : cp38-* cp39-*
168+ CIBW_BEFORE_ALL_LINUX : >
169+ yum install -y yum-utils &&
170+ yum-config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel8/x86_64/cuda-rhel8.repo &&
171+ yum install -y cuda-compiler-13-0 libcublas-devel-13-0 cuda-cudart-devel-13-0 cuda-driver-devel-13-0 devtoolset-11-gcc-c++
172+ CIBW_TEST_SKIP : " *"
173+ CIBW_ENVIRONMENT : >
174+ CMAKE_ARGS='-DKEDM_ENABLE_GPU=ON -DKokkos_ARCH_AMPERE80=ON'
175+ PATH=/usr/local/cuda/bin:$PATH
176+ CXX=/opt/rh/devtoolset-11/root/bin/g++
177+ CIBW_REPAIR_WHEEL_COMMAND_LINUX : auditwheel repair -w {dest_dir} --exclude libcublas.so.13 --exclude libcublasLt.so.13 --exclude libcuda.so.1 {wheel}
178+ - uses : actions/upload-artifact@v4
179+ with :
180+ name : wheels-cuda13x
181+ path : ./wheelhouse/*.whl
182+
156183 build-wheels-linux :
157184 runs-on : ubuntu-22.04
158185 if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
@@ -195,7 +222,7 @@ jobs:
195222 path : ./wheelhouse/*.whl
196223
197224 publish-wheels :
198- needs : [build-wheels-linux, build-wheels-macos, build-wheels-cuda12x]
225+ needs : [build-wheels-linux, build-wheels-macos, build-wheels-cuda12x, build-wheels-cuda13x ]
199226 runs-on : ubuntu-latest
200227 permissions :
201228 id-token : write
0 commit comments