Skip to content

Commit

Permalink
test pp-*
Browse files Browse the repository at this point in the history
  • Loading branch information
ameli committed Dec 15, 2023
1 parent 9b88d1d commit 51c2750
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 23 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy-conda.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: deploy-conda

on:
push:
branches:
- main
# push:
# branches:
# - main
release:
types:
- published
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy-docker.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: deploy-docker

on:
# push:
# branches:
# - main
push:
branches:
- main
release:
types:
- published
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: deploy-docs

on:
push:
branches:
- main
# push:
# branches:
# - main
pull_request:
branches:
- main
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/deploy-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
# os: [ubuntu-latest, windows-latest, macos-latest] # TEST
os: [ubuntu-latest] # TEST
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -130,7 +131,8 @@ jobs:
# CIBW_BEFORE_ALL_LINUX: chmod +x .github/scripts/install_cuda.sh && .github/scripts/install_cuda.sh
CIBW_ARCHS_LINUX: "x86_64"
CIBW_BUILD: "*-manylinux_x86_64"
CIBW_SKIP: "pp37-* cp36-* cp37-* cp38-*"
# CIBW_SKIP: "pp37-* cp36-* cp37-* cp38-*" # TEST
CIBW_SKIP: "pp37-* cp*" # TEST
CIBW_BUILD_VERBOSITY: 3
CIBW_ENVIRONMENT: "USE_LONG_INT=0 USE_UNSIGNED_LONG_INT=0 USE_CBLAS=0 USE_CUDA=1 CUDA_DYNAMIC_LOADING=1 CUDA_HOME=/usr/local/cuda"
# CIBW_BEFORE_BUILD_LINUX: yum update; yum install gcc-gfortran openblas-devel.x86_64 lapack-devel.x86_64 -y;
Expand Down
12 changes: 7 additions & 5 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
# Build
# -----

FROM nvidia/cuda:12.2.0-devel-ubuntu22.04 as builder
FROM nvidia/cuda:12.3.1-devel-ubuntu22.04 as builder
MAINTAINER Siavash Ameli <[email protected]>
LABEL Description="imate python package with cuda-12 support"

Expand All @@ -53,21 +53,23 @@ RUN rm -rf build dist

# Note: run setup.py clean to remove in-source cpp build files (if there are any)
RUN /usr/bin/python3 setup.py clean
RUN /usr/bin/python3 setup.py bdist_wheel
RUN /usr/bin/python3 -m pip install --upgrade pip
RUN /usr/bin/python3 -m pip install build
RUN /usr/bin/python3 -m build --wheel

# -------
# Runtime
# -------

FROM nvidia/cuda:12.2.0-base-ubuntu22.04
FROM nvidia/cuda:12.3.1-base-ubuntu22.04

# Install python3 and libcudablas, libcusparse, since they are not in the NVIDIA
# cuda's "base" image.
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive \
apt-get install -y --no-install-recommends \
libcublas-12-2 \
libcusparse-12-2 \
libcublas-12-3 \
libcusparse-12-3 \
python3-pip \
libgomp1 \
libsuitesparse-dev \
Expand Down
2 changes: 1 addition & 1 deletion imate/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.21.4"
__version__ = "0.21.5"
6 changes: 3 additions & 3 deletions tools/ci/cirrus_deploy_conda_macosx_arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ conda_build_wheels_macosx_arm64_task:
CIBW_TEST_SKIP: "*_universal2:arm64"

build_script:
- brew install [email protected]
- ln -s python3 /opt/homebrew/opt/[email protected]/bin/python
- which python
- uname -m
- brew install [email protected]
- sudo ln -s /opt/homebrew/opt/[email protected]/bin/python3.11 /usr/local/bin/python
- which python
- python -c "import platform;print(platform.python_version());print(platform.system());print(platform.machine())"
- clang --version
<<: *CONDA_MACOSX_ARM64_CIBW
Expand Down
6 changes: 3 additions & 3 deletions tools/ci/cirrus_deploy_pypi_macosx_arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ pypi_build_wheels_macosx_arm64_task:
CIBW_TEST_SKIP: "*_universal2:arm64"

build_script:
- brew install [email protected]
- ln -s python3 /opt/homebrew/opt/[email protected]/bin/python
- which python
- uname -m
- brew install [email protected]
- sudo ln -s /opt/homebrew/opt/[email protected]/bin/python3.11 /usr/local/bin/python
- which python
- python -c "import platform;print(platform.python_version());print(platform.system());print(platform.machine())"
- clang --version
<<: *PYPI_MACOSX_ARM64_CIBW
Expand Down

0 comments on commit 51c2750

Please sign in to comment.