File tree Expand file tree Collapse file tree 2 files changed +20
-7
lines changed Expand file tree Collapse file tree 2 files changed +20
-7
lines changed Original file line number Diff line number Diff line change @@ -7,13 +7,13 @@ requires = [
77build-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"
1115xbuild-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" ]
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments