Skip to content

[DO NOT MERGE] Test Python limited API compilation #278

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: branch-25.08
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/build-all-rapids-repos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ jobs:
sccache -z;
sccache --show-adv-stats;
clone-all -j$(nproc) -v -q --clone-upstream --single-branch --shallow-submodules;
# The latest Cython from the master branch supports limited API compilation
export NO_CYTHON_COMPILE=true
python -m pip install git+https://github.com/cython/cython.git@master

build-all \
-Wno-dev \
-j$(nproc --ignore=1) \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ repos:
- name: rmm
sub_dir: python/rmm
depends: [rmm]
args: {install: *rapids_build_backend_args}
args: {install: *rapids_build_backend_args, cmake: -DCMAKE_CXX_FLAGS="'-DPy_LIMITED_API=0x030B0000 -DCYTHON_LIMITED_API=1'"}

- name: ucxx
path: ucxx
Expand All @@ -42,6 +42,7 @@ repos:
- name: libucxx
sub_dir: python/libucxx
args: {install: *rapids_build_backend_args}
# ucxx explicitly uses functions not in the limited API, so not attempting to enable limited API builds here for now
- name: ucxx
sub_dir: python/ucxx
depends: [ucxx, ucxx-python]
Expand All @@ -65,7 +66,7 @@ repos:
- name: kvikio
sub_dir: python/kvikio
depends: [kvikio]
args: {install: *rapids_build_backend_args}
args: {install: *rapids_build_backend_args, cmake: -DCMAKE_CXX_FLAGS="'-DPy_LIMITED_API=0x030B0000 -DCYTHON_LIMITED_API=1'"}

- name: cudf
path: cudf
Expand All @@ -85,11 +86,11 @@ repos:
- name: pylibcudf
sub_dir: python/pylibcudf
depends: [cudf]
args: {install: *rapids_build_backend_args}
args: {cmake: -DCMAKE_CXX_FLAGS="'-DPy_LIMITED_API=0x030B0000 -DCYTHON_LIMITED_API=1'", install: *rapids_build_backend_args}
- name: cudf
sub_dir: python/cudf
depends: [cudf]
args: {install: *rapids_build_backend_args}
args: {cmake: -DCMAKE_CXX_FLAGS="'-DPy_LIMITED_API=0x030B0000 -DCYTHON_LIMITED_API=1'", install: *rapids_build_backend_args}
- name: dask-cudf
sub_dir: python/dask_cudf
args: {install: *rapids_build_backend_args}
Expand Down Expand Up @@ -135,11 +136,11 @@ repos:
- name: pylibraft
sub_dir: python/pylibraft
depends: [raft]
args: {install: *rapids_build_backend_args}
args: {cmake: -DCMAKE_CXX_FLAGS="'-DPy_LIMITED_API=0x030B0000 -DCYTHON_LIMITED_API=1'", install: *rapids_build_backend_args}
- name: raft-dask
sub_dir: python/raft-dask
depends: [ucxx, raft]
args: {install: *rapids_build_backend_args}
args: {cmake: -DCMAKE_CXX_FLAGS="'-DPy_LIMITED_API=0x030B0000 -DCYTHON_LIMITED_API=1'", install: *rapids_build_backend_args}

- name: cuvs
path: cuvs
Expand All @@ -159,7 +160,7 @@ repos:
- name: cuvs
sub_dir: python/cuvs
depends: [cuvs]
args: {install: *rapids_build_backend_args}
args: {cmake: -DCMAKE_CXX_FLAGS="'-DPy_LIMITED_API=0x030B0000 -DCYTHON_LIMITED_API=1'", install: *rapids_build_backend_args}

- name: cumlprims_mg
path: cumlprims_mg
Expand All @@ -186,7 +187,7 @@ repos:
- name: cuml
sub_dir: python/cuml
depends: [cuml]
args: {install: *rapids_build_backend_args}
args: {cmake: -DCMAKE_CXX_FLAGS="'-DPy_LIMITED_API=0x030B0000 -DCYTHON_LIMITED_API=1'", install: *rapids_build_backend_args}

- name: cugraph
path: cugraph
Expand All @@ -209,10 +210,11 @@ repos:
- name: pylibcugraph
sub_dir: python/pylibcugraph
depends: [cugraph]
args: {install: *rapids_build_backend_args}
args: {cmake: -DCMAKE_CXX_FLAGS="'-DPy_LIMITED_API=0x030B0000 -DCYTHON_LIMITED_API=1'", install: *rapids_build_backend_args}
- name: cugraph
sub_dir: python/cugraph
depends: [cugraph]
args: {cmake: -DCMAKE_CXX_FLAGS="'-DPy_LIMITED_API=0x030B0000 -DCYTHON_LIMITED_API=1'", install: *rapids_build_backend_args}
args: {install: *rapids_build_backend_args}
- name: cugraph-service-client
sub_dir: python/cugraph-service/client
Expand Down
Loading