Skip to content

Commit dde2fe2

Browse files
authored
Merge pull request NVIDIA#296 from leofang/wheel_prep
Prepare for wheel release + populate PyPI page information
2 parents 53a235e + 538a0b1 commit dde2fe2

File tree

6 files changed

+65
-6
lines changed

6 files changed

+65
-6
lines changed

.github/actions/build/action.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ runs:
4444
$CHOWN -R $(whoami) ${{ env.CUDA_CORE_ARTIFACTS_DIR }}
4545
ls -lahR ${{ env.CUDA_CORE_ARTIFACTS_DIR }}
4646
47+
- name: Check cuda.core wheel
48+
shell: bash --noprofile --norc -xeuo pipefail {0}
49+
run: |
50+
pip install twine
51+
twine check ${{ env.CUDA_CORE_ARTIFACTS_DIR }}/*.whl
52+
4753
- name: Upload cuda.core build artifacts
4854
uses: actions/upload-artifact@v4
4955
with:
@@ -82,6 +88,12 @@ runs:
8288
$CHOWN -R $(whoami) ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }}
8389
ls -lahR ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }}
8490
91+
# TODO: enable this after NVIDIA/cuda-python#297 is resolved
92+
# - name: Check cuda.bindings wheel
93+
# shell: bash --noprofile --norc -xeuo pipefail {0}
94+
# run: |
95+
# twine check ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }}/*.whl
96+
8597
- name: Upload cuda.bindings build artifacts
8698
uses: actions/upload-artifact@v4
8799
with:

cuda_core/DESCRIPTION.rst

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
*******************************************************
2+
cuda-core: Pythonic access to CUDA core functionalities
3+
*******************************************************
4+
5+
`cuda.core <https://nvidia.github.io/cuda-python/cuda-core/>`_ bridges Python's productivity
6+
with CUDA's performance through intuitive and pythonic APIs.
7+
The mission is to provide users full access to all of the core CUDA features in Python,
8+
such as runtime control, compiler and linker.
9+
10+
* `Repository <https://github.com/NVIDIA/cuda-python/tree/main/cuda_core>`_
11+
* `Documentation <https://nvidia.github.io/cuda-python/cuda-core/>`_
12+
* `Examples <https://github.com/NVIDIA/cuda-python/tree/main/cuda_core/examples>`_
13+
* `Issue tracker <https://github.com/NVIDIA/cuda-python/issues/>`_
14+
15+
`cuda.core` is currently under active development. Any feedbacks or suggestions are welcomed!
16+
17+
18+
Installation
19+
============
20+
21+
.. code-block:: bash
22+
23+
pip install cuda-core[cu12]
24+
25+
Please refer to the `installation instructions
26+
<https://nvidia.github.io/cuda-python/cuda-core/latest/install.html>`_ for different
27+
ways of installing `cuda.core`, including building from source.

cuda_core/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# `cuda.core`: (experimental) pythonic CUDA module
22

3-
Currently under active developmen; see [the documentation](https://nvidia.github.io/cuda-python/cuda-core/latest/) for more details.
3+
Currently under active development; see [the documentation](https://nvidia.github.io/cuda-python/cuda-core/latest/) for more details.
44

55
## Installing
66

cuda_core/docs/source/install.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@ dependencies are as follows:
1212

1313
[^1]: Including `cuda-python`.
1414

15+
## Installing from PyPI
16+
17+
`cuda.core` works with `cuda.bindings` (part of `cuda-python`) 11 or 12. For example with CUDA 12:
18+
```console
19+
$ pip install cuda-core[cu12]
20+
```
21+
and likewise use `[cu11]` for CUDA 11.
22+
23+
Note that using `cuda.core` with NVRTC or nvJitLink installed from PyPI via `pip install` is currently
24+
not supported. This will be fixed in a future release.
1525

1626
## Installing from Source
1727

cuda_core/docs/source/release/0.1.1-notes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ Released on Dec XX, 2024
3131

3232
- All APIs are currently *experimental* and subject to change without deprecation notice.
3333
Please kindly share your feedbacks with us so that we can make `cuda.core` better!
34+
- Using `cuda.core` with NVRTC or nvJitLink installed from PyPI via `pip install` is currently
35+
not supported. This will be fixed in a future release.
3436
- Some `LinkerOptions` are only available when using a modern version of CUDA. When using CUDA <12,
3537
the backend is the cuLink api which supports only a subset of the options that nvjitlink does.
3638
Further, some options aren't available on CUDA versions <12.6

cuda_core/pyproject.toml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ authors = [
2020
]
2121
license = {text = "NVIDIA Software License"}
2222
classifiers = [
23-
"Development Status :: 3 - Alpha",
23+
"Development Status :: 4 - Beta",
2424
"Intended Audience :: Developers",
2525
"Intended Audience :: Science/Research",
2626
"Intended Audience :: End Users/Desktop",
@@ -36,25 +36,33 @@ classifiers = [
3636
"Programming Language :: Python :: 3.10",
3737
"Programming Language :: Python :: 3.11",
3838
"Programming Language :: Python :: 3.12",
39+
"Programming Language :: Python :: 3.13",
3940
"Programming Language :: Python :: Implementation :: CPython",
4041
"Environment :: GPU :: NVIDIA CUDA",
4142
"Environment :: GPU :: NVIDIA CUDA :: 11",
4243
"Environment :: GPU :: NVIDIA CUDA :: 12",
4344
]
4445
dependencies = [
4546
"numpy",
46-
# TODO: change this once cuda-bindings is packaged, see NVIDIA/cuda-python#105
47-
"cuda-python <13",
4847
]
4948

49+
[project.optional-dependencies]
50+
# TODO: change this once cuda-bindings is packaged, see NVIDIA/cuda-python#105
51+
cu11 = ["cuda-python==11.8.*"]
52+
cu12 = ["cuda-python==12.*"]
53+
54+
[project.urls]
55+
homepage = "https://nvidia.github.io/cuda-python/"
56+
documentation = "https://nvidia.github.io/cuda-python/cuda-core/"
57+
repository = "https://github.com/NVIDIA/cuda-python/tree/main/cuda_core"
58+
issues = "https://github.com/NVIDIA/cuda-python/issues/"
5059

5160
[tool.setuptools.packages.find]
5261
include = ["cuda.core*"]
5362

54-
5563
[tool.setuptools.dynamic]
5664
version = { attr = "cuda.core._version.__version__" }
57-
readme = { file = ["README.md"], content-type = "text/markdown" }
65+
readme = { file = ["DESCRIPTION.rst"], content-type = "text/x-rst" }
5866

5967
[tool.ruff]
6068
line-length = 120

0 commit comments

Comments
 (0)