Skip to content

Commit

Permalink
Hardcode versions
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentmr committed Oct 12, 2023
1 parent 6ba6157 commit f30b6a4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/wheel_linux_x86_64_cu11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,18 @@ jobs:

CIBW_SKIP: "*-musllinux*"

CIBW_CONFIG_SETTINGS: --global-option=build_ext --global-option=--define="CMAKE_CXX_COMPILER=$(which g++-$GCC_VERSION);CMAKE_C_COMPILER=$(which gcc-$GCC_VERSION);LIGHTNING_RELEASE_TAG=master"
CIBW_CONFIG_SETTINGS: --global-option=build_ext --global-option=--define="CMAKE_CXX_COMPILER=$(which g++-11);CMAKE_C_COMPILER=$(which gcc-11);LIGHTNING_RELEASE_TAG=master"

# Python build settings
CIBW_BEFORE_BUILD: |
cat /etc/yum.conf | sed "s/\[main\]/\[main\]\ntimeout=5/g" > /etc/yum.conf
python -m pip install ninja cmake~=3.24.3 auditwheel custatevec-cu$CUDA_VERSION_MAJOR
yum clean all -y
yum install centos-release-scl-rh -y
yum install devtoolset-$GCC_VERSION-gcc-c++ -y
source /opt/rh/devtoolset-$GCC_VERSION/enable -y
yum install devtoolset-11-gcc-c++ -y
source /opt/rh/devtoolset-11/enable -y
yum-config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel7/x86_64/cuda-rhel7.repo -y
yum -y install cuda-$CUDA_VERSION_MAJOR-$CUDA_VERSION_MINOR git openssh wget
yum -y install cuda-11-5 git openssh wget
# ensure nvcc is available
CIBW_ENVIRONMENT: |
Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
regex: '.*[0-9]+.[0-9]+.[0-9]+[-_]?rc[0-9]+'

- uses: actions/upload-artifact@v3
if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master' || steps.rc_build.outputs.match != ''}}
# if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master' || steps.rc_build.outputs.match != ''}}
with:
name: ${{ runner.os }}-wheels-${{ matrix.pl_backend }}-${{ matrix.arch }}.zip
path: ./wheelhouse/*.whl
Expand Down

0 comments on commit f30b6a4

Please sign in to comment.