Skip to content

Commit 763dec3

Browse files
committed
update before all to setup cuda env
1 parent 1e271e5 commit 763dec3

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/build-wheels-cuda.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,16 @@ jobs:
1616
env:
1717
CIBW_BUILD: "cp312-manylinux_x86_64"
1818
CIBW_BEFORE_ALL: >
19-
apt-get install -y libopenblas-dev gcc-9 g++-9
19+
yum install -y openblas-devel gtest wget yum-utils && \
20+
wget https://developer.download.nvidia.com/compute/cuda/12.1.1/local_installers/cuda-repo-rhel7-12-1-local-12.1.1_530.30.02-1.x86_64.rpm && \
21+
rpm -i cuda-repo-rhel7-12-1-local-12.1.1_530.30.02-1.x86_64.rpm && \
22+
yum clean all && \
23+
yum -y install nvidia-driver-latest-dkms && \
24+
yum -y install cuda
2025
CIBW_BEFORE_BUILD: >
2126
pip install torch==2.3.1+cu121 torchvision -f https://download.pytorch.org/whl/torch_stable.html
2227
&& pip install -r requirements.txt
23-
CIBW_MANYLINUX_X86_64_IMAGE: "aihwkit/manylinux2014_x86_64_aihwkit_cuda"
28+
CIBW_MANYLINUX_X86_64_IMAGE: "quay.io/pypa/manylinux2014_x86_64"
2429
CIBW_REPAIR_WHEEL_COMMAND: >
2530
auditwheel repair -w {dest_dir} {wheel} --exclude libtorch_python.so
2631
steps:

0 commit comments

Comments
 (0)