Skip to content

Commit 936b940

Browse files
test
1 parent 571253b commit 936b940

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-7
lines changed

pyproject.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ requires = [
77
build-backend = "setuptools.build_meta"
88

99
[tool.cibuildwheel]
10-
environment = { cuda = "12.9", temp = "/tmp/cuda-temp" }
10+
environment-pass = ["CUDA_PATH"]
11+
environment.PATH = "${PATH}:${CUDA_PATH}/bin"
12+
environment.LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$CUDA_PATH/lib:$CUDA_PATH/lib64"
13+
environment.cuda = "12.9"
14+
environment.temp = "/tmp/cuda-temp"
1115
xbuild-tools = ["cmake", "ninja"]
1216

1317
[tool.cibuildwheel.linux]
14-
before-all = [
15-
"chmod +x {package}/tensor-array-repo/Tensor-Array/scripts/actions/install-cuda-rhel.sh",
16-
"dnf -y install redhat-lsb-core wget",
17-
"{package}/tensor-array-repo/Tensor-Array/scripts/actions/install-cuda-rhel.sh"
18-
]
19-
xbuild-tools = ["cmake", "ninja"]
18+
before-all = "scripts/build-env/manylinux.sh"
19+
xbuild-tools = ["cmake", "ninja", "nvcc"]

scripts/build-env/manylinux.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
cd ../..
3+
4+
# Install dependencies for building Tensor-Array on manylinux
5+
chmod +x tensor-array-repo/Tensor-Array/scripts/actions/install-cuda-rhel.sh
6+
dnf -y install redhat-lsb-core wget
7+
tensor-array-repo/Tensor-Array/scripts/actions/install-cuda-rhel.sh
8+
9+
# Check if nvcc is available
10+
if ! command -v nvcc &> /dev/null; then
11+
echo "nvcc could not be found. Please ensure CUDA is installed correctly."
12+
exit 1
13+
fi

0 commit comments

Comments
 (0)