From d3c62b12cc094a49df7fd6d5b3a1f83ef98f3475 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Wed, 25 Nov 2026 13:53:09 -0500 Subject: [PATCH] samples: fix unsatisfiable dependency pins and depend on cuda-core[cu13] Three cuda.core samples declared PEP 723 requirements that no CI environment can satisfy, so they skipped everywhere: - processCheckpoint capped cuda-python <13.3.0 because cuda-bindings 13.3.0 lacked CUcheckpointRestoreArgs (13.3.1 restored it). Require cuda-core[cu13]>=1.3.0 instead: its cu13 extra needs cuda-bindings >=13.5.0, which excludes 13.3.0. - tmaTensorMap required the CUDA 12 nvidia-cuda-cccl-cu12 package. Use the CUDA 13 nvidia-cuda-cccl>=13.0.0. - pageRank pinned cuda-core<1.0.0 because cudf-cu13 used to require numba-cuda<0.29.0. Current cudf-cu13 allows numba-cuda 0.30.4, which allows cuda-core<2.0.0, so use a lower bound and drop the README note. Samples that depend on cuda-core no longer list cuda-python. They require cuda-core[cu13] instead, which installs the matching cuda-bindings, in the PEP 723 headers, requirements.txt files, and READMEs. Samples that use cuda.core.texture require cuda-core>=1.1.0. The sample runner now checks the installed distributions that a requested extra requires, so cuda-core[cu13] is unmet when cuda-bindings 12.x is installed and these samples keep skipping on CUDA 12 rows. Distributions an extra requires but that are not installed are accepted, because conda and a local CUDA Toolkit provide them without pip metadata. Move the code that runs one sample and maps its result to a pytest outcome, duplicated in the cuda.core and cuda.bindings test_samples.py, into SampleSuite in sample_runner.py, and drop wrapper re-exports that are no longer used. processCheckpoint now runs in CI, so remove it from the "not currently run in any CI job" marker scope. Closes #3567. Co-Authored-By: Claude Opus 5.5 --- .../tests/example_tests/run_samples.py | 6 - .../tests/example_tests/test_samples.py | 40 +----- cuda_core/tests/example_tests/run_samples.py | 10 +- .../tests/example_tests/test_run_samples.py | 1 + cuda_core/tests/example_tests/test_samples.py | 45 +------ .../cuda_python_test_helpers/sample_runner.py | 120 +++++++++++++++++- samples/cuda_core/binarySearch/README.md | 4 +- .../cuda_core/binarySearch/binarySearch.py | 2 +- .../cuda_core/binarySearch/requirements.txt | 2 +- .../cuda_core/blockwiseSum/blockwiseSum.py | 2 +- .../cuda_core/blockwiseSum/requirements.txt | 3 +- .../blurImageUnifiedMemory/README.md | 3 +- .../blurImageUnifiedMemory.py | 2 +- .../blurImageUnifiedMemory/requirements.txt | 3 +- .../cuda_core/copyImageArraytoGPU/README.md | 6 +- .../copyImageArraytoGPU.py | 2 +- .../copyImageArraytoGPU/requirements.txt | 3 +- .../cuda_core/cudaComputeLambdas/README.md | 4 +- .../cudaComputeLambdas/cudaComputeLambdas.py | 2 +- .../cudaComputeLambdas/requirements.txt | 2 +- samples/cuda_core/cudaGraphs/README.md | 8 +- samples/cuda_core/cudaGraphs/cudaGraphs.py | 2 +- samples/cuda_core/cudaGraphs/requirements.txt | 3 +- .../cuda_core/customPyTorchKernel/README.md | 3 +- .../customPyTorchKernel.py | 2 +- .../customPyTorchKernel/requirements.txt | 3 +- .../customTensorFlowKernel/README.md | 3 +- .../customTensorFlowKernel.py | 2 +- .../customTensorFlowKernel/requirements.txt | 5 +- samples/cuda_core/deviceQuery/README.md | 8 +- samples/cuda_core/deviceQuery/deviceQuery.py | 2 +- .../cuda_core/deviceQuery/requirements.txt | 3 +- .../fftSignalAnalysis/fftSignalAnalysis.py | 2 +- .../fftSignalAnalysis/requirements.txt | 3 +- samples/cuda_core/glInteropFluid/README.md | 5 +- .../glInteropFluid/glInteropFluid.py | 2 +- .../cuda_core/glInteropFluid/requirements.txt | 3 +- .../cuda_core/glInteropMipmapLod/README.md | 3 +- .../glInteropMipmapLod/glInteropMipmapLod.py | 2 +- .../glInteropMipmapLod/requirements.txt | 3 +- samples/cuda_core/glInteropPlasma/README.md | 5 +- .../glInteropPlasma/glInteropPlasma.py | 2 +- .../glInteropPlasma/requirements.txt | 3 +- samples/cuda_core/greenContext/README.md | 2 +- .../cuda_core/greenContext/greenContext.py | 2 +- .../cuda_core/greenContext/requirements.txt | 3 +- samples/cuda_core/ipcMemoryPool/README.md | 8 +- .../cuda_core/ipcMemoryPool/ipcMemoryPool.py | 2 +- .../cuda_core/ipcMemoryPool/requirements.txt | 3 +- samples/cuda_core/jitLtoLinking/README.md | 8 +- .../cuda_core/jitLtoLinking/jitLtoLinking.py | 2 +- .../cuda_core/jitLtoLinking/requirements.txt | 3 +- samples/cuda_core/kernelNsysProfile/README.md | 2 +- .../kernelNsysProfile/kernelNsysProfile.py | 2 +- .../kernelNsysProfile/requirements.txt | 3 +- .../launchConfigTuning/launchConfigTuning.py | 2 +- .../launchConfigTuning/requirements.txt | 3 +- .../matrixMulSharedMem/matrixMulSharedMem.py | 2 +- .../matrixMulSharedMem/requirements.txt | 3 +- samples/cuda_core/memoryResources/README.md | 8 +- .../memoryResources/memoryResources.py | 2 +- .../memoryResources/requirements.txt | 3 +- .../multiGPUGradientAverage.py | 2 +- .../multiGPUGradientAverage/requirements.txt | 3 +- samples/cuda_core/numpyVsCupy/numpyVsCupy.py | 2 +- .../cuda_core/numpyVsCupy/requirements.txt | 3 +- samples/cuda_core/pageRank/README.md | 18 --- samples/cuda_core/pageRank/pageRank.py | 2 +- samples/cuda_core/pageRank/requirements.txt | 4 +- .../parallelHistogram/parallelHistogram.py | 2 +- .../parallelHistogram/requirements.txt | 3 +- samples/cuda_core/parallelReduction/README.md | 3 +- .../parallelReduction/parallelReduction.py | 2 +- .../parallelReduction/requirements.txt | 3 +- .../persistentProgramCache/README.md | 8 +- .../persistentProgramCache.py | 2 +- .../persistentProgramCache/requirements.txt | 3 +- samples/cuda_core/prefixSum/README.md | 3 +- samples/cuda_core/prefixSum/prefixSum.py | 2 +- samples/cuda_core/prefixSum/requirements.txt | 3 +- samples/cuda_core/processCheckpoint/README.md | 2 +- .../processCheckpoint/processCheckpoint.py | 2 +- .../processCheckpoint/requirements.txt | 6 +- samples/cuda_core/reduction/reduction.py | 2 +- samples/cuda_core/reduction/requirements.txt | 3 +- .../reductionMultiBlockCG.py | 2 +- .../reductionMultiBlockCG/requirements.txt | 3 +- samples/cuda_core/simpleMultiGpu/README.md | 5 +- .../cuda_core/simpleMultiGpu/requirements.txt | 3 +- .../simpleMultiGpu/simpleMultiGpu.py | 2 +- samples/cuda_core/simpleP2P/README.md | 2 +- samples/cuda_core/simpleP2P/requirements.txt | 3 +- samples/cuda_core/simpleP2P/simpleP2P.py | 2 +- samples/cuda_core/simplePrint/README.md | 3 +- .../cuda_core/simplePrint/requirements.txt | 3 +- samples/cuda_core/simplePrint/simplePrint.py | 2 +- samples/cuda_core/simpleZeroCopy/README.md | 8 +- .../cuda_core/simpleZeroCopy/requirements.txt | 3 +- .../simpleZeroCopy/simpleZeroCopy.py | 2 +- .../streamingCopyComputeOverlap/README.md | 2 +- .../requirements.txt | 3 +- .../streamingCopyComputeOverlap.py | 2 +- .../stridedMemoryViewConstructors/README.md | 5 +- .../requirements.txt | 3 +- .../stridedMemoryViewConstructors.py | 2 +- .../cuda_core/stridedMemoryViewCpu/README.md | 5 +- .../stridedMemoryViewCpu/requirements.txt | 3 +- .../stridedMemoryViewCpu.py | 2 +- .../cuda_core/stridedMemoryViewGpu/README.md | 5 +- .../stridedMemoryViewGpu/requirements.txt | 3 +- .../stridedMemoryViewGpu.py | 2 +- samples/cuda_core/systemInfo/README.md | 10 +- samples/cuda_core/systemInfo/requirements.txt | 3 +- samples/cuda_core/systemInfo/systemInfo.py | 2 +- samples/cuda_core/textureSample/README.md | 3 +- .../cuda_core/textureSample/requirements.txt | 3 +- .../cuda_core/textureSample/textureSample.py | 2 +- .../cuda_core/threadBlockCluster/README.md | 3 +- .../threadBlockCluster/requirements.txt | 3 +- .../threadBlockCluster/threadBlockCluster.py | 2 +- samples/cuda_core/tmaTensorMap/README.md | 6 +- .../cuda_core/tmaTensorMap/requirements.txt | 5 +- .../cuda_core/tmaTensorMap/tmaTensorMap.py | 2 +- samples/cuda_core/vectorAdd/README.md | 8 +- samples/cuda_core/vectorAdd/requirements.txt | 3 +- samples/cuda_core/vectorAdd/vectorAdd.py | 2 +- 126 files changed, 284 insertions(+), 338 deletions(-) diff --git a/cuda_bindings_13/tests/example_tests/run_samples.py b/cuda_bindings_13/tests/example_tests/run_samples.py index 67c2c1bfcf17..ec3d69bc2b34 100644 --- a/cuda_bindings_13/tests/example_tests/run_samples.py +++ b/cuda_bindings_13/tests/example_tests/run_samples.py @@ -19,12 +19,6 @@ DEFAULT_SAMPLES_DIR = REPO_ROOT / "samples" / "cuda_bindings" SAMPLE_NAMESPACE = "cuda_bindings" -build_run_plan = _runner.build_run_plan -collect_sample_entries = _runner.collect_sample_entries -get_gpu_count = _runner.get_gpu_count -load_config = _runner.load_config -run_sample = _runner.run_sample - def main(argv: list[str] | None = None) -> int: return _runner.main( diff --git a/cuda_bindings_13/tests/example_tests/test_samples.py b/cuda_bindings_13/tests/example_tests/test_samples.py index b89ad0b4f4f0..1d34c9ff3b5c 100644 --- a/cuda_bindings_13/tests/example_tests/test_samples.py +++ b/cuda_bindings_13/tests/example_tests/test_samples.py @@ -5,29 +5,17 @@ from __future__ import annotations import os -import sys import pytest -from run_samples import ( - DEFAULT_CONFIG, - DEFAULT_SAMPLES_DIR, - SAMPLE_NAMESPACE, - build_run_plan, - collect_sample_entries, - get_gpu_count, - load_config, - run_sample, -) +from cuda_python_test_helpers.sample_runner import SampleSuite +from run_samples import DEFAULT_CONFIG, DEFAULT_SAMPLES_DIR, SAMPLE_NAMESPACE -_ENTRIES = collect_sample_entries(DEFAULT_SAMPLES_DIR, SAMPLE_NAMESPACE) -_SAMPLES = sorted(_ENTRIES) -_CONFIG = load_config(DEFAULT_CONFIG) -_GPU_COUNT = get_gpu_count() if _SAMPLES else 0 +_SUITE = SampleSuite(DEFAULT_SAMPLES_DIR, SAMPLE_NAMESPACE, DEFAULT_CONFIG) _CUDA_12_PIXI_ENV = os.environ.get("PIXI_ENVIRONMENT_NAME") == "cu12" @pytest.mark.parallel_threads_limit(1) -@pytest.mark.parametrize("sample_key", _SAMPLES) +@pytest.mark.parametrize("sample_key", _SUITE.keys) @pytest.mark.samples @pytest.mark.skipif( _CUDA_12_PIXI_ENV, @@ -35,22 +23,4 @@ ) @pytest.mark.agent_authored(model="gpt-5") def test_sample(sample_key: str) -> None: - if _GPU_COUNT == 0: - pytest.skip("No CUDA GPU detected on the test runner") - - entry = _ENTRIES.get(sample_key) - if entry is None or not entry.is_file(): - pytest.fail(f"Sample entrypoint missing: {sample_key}") - - plan = build_run_plan(entry, _CONFIG, _GPU_COUNT, sample_key=sample_key) - result = run_sample(plan) - - if result.status == "WAIVED": - if result.detail.startswith("unmet package requirement(s):"): - pytest.fail(f"sample dependencies are not satisfied: {result.detail}") - pytest.skip(result.detail or "sample waived") - if result.status == "PASS": - return - - sys.stdout.flush() - pytest.fail(f"sample {sample_key} returned status={result.status} (rc={result.return_code}): {result.detail}") + _SUITE.check(sample_key, fail_on_unmet_dependencies=True) diff --git a/cuda_core/tests/example_tests/run_samples.py b/cuda_core/tests/example_tests/run_samples.py index bf00c726a001..29cbc894a9ea 100644 --- a/cuda_core/tests/example_tests/run_samples.py +++ b/cuda_core/tests/example_tests/run_samples.py @@ -19,20 +19,16 @@ DEFAULT_SAMPLES_DIR = REPO_ROOT / "samples" / "cuda_core" SAMPLE_NAMESPACE = "cuda_core" -DEFAULT_TIMEOUT = _runner.DEFAULT_TIMEOUT -DependencyMetadataError = _runner.DependencyMetadataError +# Re-exported for the runner unit tests in test_run_samples.py and +# test_sample_verification.py. RunPlan = _runner.RunPlan -RunResult = _runner.RunResult build_run_plan = _runner.build_run_plan collect_sample_entries = _runner.collect_sample_entries -discover_samples = _runner.discover_samples get_gpu_count = _runner.get_gpu_count -get_sample_id = _runner.get_sample_id load_config = _runner.load_config missing_dependencies = _runner.missing_dependencies run_sample = _runner.run_sample - -# Kept available for runner unit tests that patch distribution metadata. +# Patched by the runner unit tests to fake distribution metadata. importlib = _runner.importlib diff --git a/cuda_core/tests/example_tests/test_run_samples.py b/cuda_core/tests/example_tests/test_run_samples.py index 14bbcce06405..40053174f1d6 100644 --- a/cuda_core/tests/example_tests/test_run_samples.py +++ b/cuda_core/tests/example_tests/test_run_samples.py @@ -19,6 +19,7 @@ class _Distribution: def __init__(self, version: str, extras: tuple[str, ...] = ()) -> None: self.version = version + self.requires = None self.metadata = Message() for extra in extras: self.metadata["Provides-Extra"] = extra diff --git a/cuda_core/tests/example_tests/test_samples.py b/cuda_core/tests/example_tests/test_samples.py index 2ae42b4b6d71..0931613022e4 100644 --- a/cuda_core/tests/example_tests/test_samples.py +++ b/cuda_core/tests/example_tests/test_samples.py @@ -4,26 +4,11 @@ from __future__ import annotations -import sys - import pytest -from run_samples import ( - DEFAULT_CONFIG, - DEFAULT_SAMPLES_DIR, - SAMPLE_NAMESPACE, - build_run_plan, - collect_sample_entries, - get_gpu_count, - load_config, - run_sample, -) +from cuda_python_test_helpers.sample_runner import SampleSuite +from run_samples import DEFAULT_CONFIG, DEFAULT_SAMPLES_DIR, SAMPLE_NAMESPACE -_ENTRIES = collect_sample_entries(DEFAULT_SAMPLES_DIR, SAMPLE_NAMESPACE) -_SAMPLES = sorted(_ENTRIES) -_CONFIG = load_config(DEFAULT_CONFIG) -# Resolve GPU count once at collection time so we report the same skip reason -# consistently across the parametrized test ids. -_GPU_COUNT = get_gpu_count() if _SAMPLES else 0 +_SUITE = SampleSuite(DEFAULT_SAMPLES_DIR, SAMPLE_NAMESPACE, DEFAULT_CONFIG) # Samples launch full GPU workloads in their own subprocess, so keep them @@ -32,30 +17,12 @@ # cuda_core/customTensorFlowKernel, cuda_core/fftSignalAnalysis, cuda_core/glInteropFluidNumbaCudaMlir, # cuda_core/glInteropFluid, cuda_core/glInteropMipmapLod, cuda_core/glInteropPlasma, cuda_core/greenContext, # cuda_core/matrixMulSharedMem, cuda_core/multiGPUGradientAverage, cuda_core/numpyVsCupy, cuda_core/pageRank, -# cuda_core/parallelReduction, cuda_core/prefixSum, cuda_core/processCheckpoint, cuda_core/reductionMultiBlockCG, +# cuda_core/parallelReduction, cuda_core/prefixSum, cuda_core/reductionMultiBlockCG, # cuda_core/simplePrint, cuda_core/tmaTensorMap: # This test is not currently run in any CI job @pytest.mark.parallel_threads_limit(1) -@pytest.mark.parametrize("sample_key", _SAMPLES) +@pytest.mark.parametrize("sample_key", _SUITE.keys) @pytest.mark.samples @pytest.mark.agent_authored(model="gpt-5") def test_sample(sample_key: str) -> None: - if _GPU_COUNT == 0: - pytest.skip("No CUDA GPU detected on the test runner") - - entry = _ENTRIES.get(sample_key) - if entry is None or not entry.is_file(): - pytest.fail(f"Sample entrypoint missing: {sample_key}") - - plan = build_run_plan(entry, _CONFIG, _GPU_COUNT, sample_key=sample_key) - result = run_sample(plan) - - if result.status == "WAIVED": - pytest.skip(result.detail or "sample waived") - if result.status == "PASS": - return - - # Re-print captured output through stdout/stderr so pytest's failure - # capture surfaces it in the report. - sys.stdout.flush() - pytest.fail(f"sample {sample_key} returned status={result.status} (rc={result.return_code}): {result.detail}") + _SUITE.check(sample_key) diff --git a/cuda_python_test_helpers/cuda_python_test_helpers/sample_runner.py b/cuda_python_test_helpers/cuda_python_test_helpers/sample_runner.py index 362363c57c5f..ed3be1960c4e 100644 --- a/cuda_python_test_helpers/cuda_python_test_helpers/sample_runner.py +++ b/cuda_python_test_helpers/cuda_python_test_helpers/sample_runner.py @@ -27,6 +27,7 @@ from pathlib import Path from typing import Any +import pytest from packaging.requirements import InvalidRequirement, Requirement from packaging.utils import canonicalize_name from packaging.version import InvalidVersion @@ -35,6 +36,8 @@ DEFAULT_TIMEOUT = 300 EXIT_WAIVED = 77 WAIVER_EXIT_CODE_ENV = "CUDA_PYTHON_SAMPLE_WAIVER_EXIT_CODE" +# Prefix of the RunResult detail for a sample waived for unmet PEP 723 dependencies. +UNMET_DEPENDENCIES = "unmet package requirement(s):" _print_lock = threading.Lock() @@ -318,7 +321,62 @@ def _provided_extras(dist: importlib.metadata.Distribution) -> set[str]: return {canonicalize_name(extra) for extra in (dist.metadata.get_all("Provides-Extra") or ())} -def _distribution_mismatches(requirement: Requirement, dist: importlib.metadata.Distribution) -> list[str]: +def _extra_requirements(dist: importlib.metadata.Distribution, extra: str) -> list[Requirement]: + """Return the requirements that ``extra`` adds to ``dist``'s base requirements.""" + requirements: list[Requirement] = [] + for spec in dist.requires or (): + requirement = Requirement(spec) + marker = requirement.marker + if marker is not None and marker.evaluate({"extra": extra}) and not marker.evaluate({"extra": ""}): + requirements.append(requirement) + return requirements + + +def _requirement_without_marker(requirement: Requirement) -> str: + text = requirement.name + if requirement.extras: + text += f"[{','.join(sorted(requirement.extras))}]" + return text + str(requirement.specifier) + + +def _extra_mismatches( + name: str, dist: importlib.metadata.Distribution, extra: str, seen: set[tuple[str, str]] +) -> list[str]: + """Check the installed distributions that ``extra`` of ``dist`` requires. + + A distribution the extra requires but that is not installed is accepted: + conda packages and a local CUDA Toolkit provide many of these libraries + without pip metadata. An installed one must satisfy the requirement, so + that, for example, ``cuda-core[cu13]`` is unmet when cuda-bindings 12.x is + installed. + """ + key = (name, extra) + if key in seen: + return [] + seen.add(key) + + mismatches: list[str] = [] + for requirement in _extra_requirements(dist, extra): + for provider in _distribution_providers(requirement): + try: + provider_dist = importlib.metadata.distribution(provider) + except importlib.metadata.PackageNotFoundError: + continue + for detail in _distribution_mismatches(requirement, provider_dist, provider, seen): + mismatches.append( + f"extra {extra} requires {_requirement_without_marker(requirement)} " + f"({provider} {provider_dist.version}: {detail})" + ) + break + return mismatches + + +def _distribution_mismatches( + requirement: Requirement, + dist: importlib.metadata.Distribution, + name: str, + seen: set[tuple[str, str]] | None = None, +) -> list[str]: mismatches: list[str] = [] if requirement.specifier: try: @@ -329,9 +387,15 @@ def _distribution_mismatches(requirement: Requirement, dist: importlib.metadata. if not version_matches: mismatches.append(f"version {dist.version} does not satisfy {requirement.specifier}") - missing_extras = {canonicalize_name(extra) for extra in requirement.extras} - _provided_extras(dist) + requested_extras = {canonicalize_name(extra) for extra in requirement.extras} + missing_extras = requested_extras - _provided_extras(dist) if missing_extras: mismatches.append(f"does not provide extra(s): {', '.join(sorted(missing_extras))}") + + if seen is None: + seen = set() + for extra in sorted(requested_extras - missing_extras): + mismatches.extend(_extra_mismatches(canonicalize_name(name), dist, extra, seen)) return mismatches @@ -362,7 +426,7 @@ def missing_dependencies(example: Path) -> list[str]: dist = importlib.metadata.distribution(provider) except importlib.metadata.PackageNotFoundError: continue - mismatches = _distribution_mismatches(requirement, dist) + mismatches = _distribution_mismatches(requirement, dist, provider) if not mismatches: break installed.append(f"{provider} {dist.version}: {', '.join(mismatches)}") @@ -485,7 +549,7 @@ def run_sample(plan: RunPlan) -> RunResult: _safe_print(f" [ERROR] {name}: {reason}") return RunResult(sample, "ERROR", -1, reason, plan.sample_key) if missing: - reason = f"unmet package requirement(s): {'; '.join(missing)}" + reason = f"{UNMET_DEPENDENCIES} {'; '.join(missing)}" _safe_print(f" [WAIVED] {name}: {reason}") return RunResult(sample, "WAIVED", EXIT_WAIVED, reason, plan.sample_key) @@ -528,6 +592,54 @@ def run_sample(plan: RunPlan) -> RunResult: return RunResult(sample, "FAIL", proc.returncode, msg, plan.sample_key) +# --------------------------------------------------------------------------- +# Pytest integration +# --------------------------------------------------------------------------- + + +class SampleSuite: + """The samples one package owns, resolved once at collection time.""" + + def __init__(self, samples_dir: Path, namespace: str, config_path: Path) -> None: + self.entries = collect_sample_entries(samples_dir, namespace) + self.keys = sorted(self.entries) + self.config = load_config(config_path) + # Resolve the GPU count once, so every parametrized test id reports the + # same skip reason. + if self.keys: + self.gpu_count = get_gpu_count() + else: + self.gpu_count = 0 + + def check(self, sample_key: str, *, fail_on_unmet_dependencies: bool = False) -> None: + """Run one sample and turn its result into a pytest outcome. + + A waived sample skips. With ``fail_on_unmet_dependencies``, a sample + waived because its PEP 723 dependencies are not installed fails instead. + """ + if self.gpu_count == 0: + pytest.skip("No CUDA GPU detected on the test runner") + + entry = self.entries.get(sample_key) + if entry is None or not entry.is_file(): + pytest.fail(f"Sample entrypoint missing: {sample_key}") + + plan = build_run_plan(entry, self.config, self.gpu_count, sample_key=sample_key) + result = run_sample(plan) + + if result.status == "WAIVED": + if fail_on_unmet_dependencies and result.detail.startswith(UNMET_DEPENDENCIES): + pytest.fail(f"sample dependencies are not satisfied: {result.detail}") + pytest.skip(result.detail or "sample waived") + if result.status == "PASS": + return + + # run_sample printed the sample's output; flush it so pytest's failure + # capture surfaces it in the report. + sys.stdout.flush() + pytest.fail(f"sample {sample_key} returned status={result.status} (rc={result.return_code}): {result.detail}") + + # --------------------------------------------------------------------------- # Entry point # --------------------------------------------------------------------------- diff --git a/samples/cuda_core/binarySearch/README.md b/samples/cuda_core/binarySearch/README.md index a3ba2dd1fef4..069de9a06e04 100644 --- a/samples/cuda_core/binarySearch/README.md +++ b/samples/cuda_core/binarySearch/README.md @@ -57,7 +57,7 @@ diverge on present values). Results are verified against - CUDA Toolkit 13.0 or newer - Python 3.11 or newer - `cuda-cccl` (>=1.0.0) -- `cuda-core` (>=1.0.0) +- `cuda-core[cu13]` (>=1.0.0) - `cupy-cuda13x` (>=14.0.0) If the CUDA toolkit is not on your `PATH`, set `CUDA_HOME` so that @@ -79,7 +79,7 @@ pip install -r requirements.txt The `requirements.txt` installs: - `cuda-cccl` (>=1.0.0) - ships the `cuda.compute` module -- `cuda-core` (>=1.0.0) +- `cuda-core[cu13]` (>=1.0.0) - `cupy-cuda13x` (>=14.0.0) - `numpy` (>=1.24.0) diff --git a/samples/cuda_core/binarySearch/binarySearch.py b/samples/cuda_core/binarySearch/binarySearch.py index ccd6f488c0ce..1595c47e7f54 100644 --- a/samples/cuda_core/binarySearch/binarySearch.py +++ b/samples/cuda_core/binarySearch/binarySearch.py @@ -25,7 +25,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # /// script -# dependencies = ["cuda-cccl[cu13]>=1.0.0", "cuda-core>=1.0.0", "cupy-cuda13x>=14.0.0", "numpy>=1.24.0"] +# dependencies = ["cuda-cccl[cu13]>=1.0.0", "cuda-core[cu13]>=1.0.0", "cupy-cuda13x>=14.0.0", "numpy>=1.24.0"] # /// """ diff --git a/samples/cuda_core/binarySearch/requirements.txt b/samples/cuda_core/binarySearch/requirements.txt index 3110a76e9348..751af4357830 100644 --- a/samples/cuda_core/binarySearch/requirements.txt +++ b/samples/cuda_core/binarySearch/requirements.txt @@ -1,4 +1,4 @@ cuda-cccl[cu13]>=1.0.0 -cuda-core>=1.0.0 +cuda-core[cu13]>=1.0.0 cupy-cuda13x>=14.0.0 numpy>=1.24.0 diff --git a/samples/cuda_core/blockwiseSum/blockwiseSum.py b/samples/cuda_core/blockwiseSum/blockwiseSum.py index b61bfa00d1b3..7fc07df97855 100644 --- a/samples/cuda_core/blockwiseSum/blockwiseSum.py +++ b/samples/cuda_core/blockwiseSum/blockwiseSum.py @@ -25,7 +25,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # /// script -# dependencies = ["cuda-python>=13.0.0", "cuda-core>=1.0.0", "cupy-cuda13x>=14.0.0", "numpy>=2.3.2"] +# dependencies = ["cuda-core[cu13]>=1.0.0", "cupy-cuda13x>=14.0.0", "numpy>=2.3.2"] # /// """ diff --git a/samples/cuda_core/blockwiseSum/requirements.txt b/samples/cuda_core/blockwiseSum/requirements.txt index e70c86353b69..e9293c31259d 100644 --- a/samples/cuda_core/blockwiseSum/requirements.txt +++ b/samples/cuda_core/blockwiseSum/requirements.txt @@ -1,6 +1,5 @@ # Block-wise Array Sum Requirements -cuda-python>=13.0.0 -cuda-core>=1.0.0 +cuda-core[cu13]>=1.0.0 cupy-cuda13x>=14.0.0 numpy>=2.3.2 diff --git a/samples/cuda_core/blurImageUnifiedMemory/README.md b/samples/cuda_core/blurImageUnifiedMemory/README.md index 38549cd5fced..1dce99b6dffd 100644 --- a/samples/cuda_core/blurImageUnifiedMemory/README.md +++ b/samples/cuda_core/blurImageUnifiedMemory/README.md @@ -105,8 +105,7 @@ When returning a zero-copy view, the caller must close the buffers after use (e. - CUDA Toolkit 13.0 or newer - Python 3.11 or newer -- `cuda-python` package (13.0.0+) -- `cuda-core` package (>=1.0.0) +- `cuda-core[cu13]` package (>=1.0.0) - `numpy` package (>=2.3.2) - `pillow` package (10.0.0+) diff --git a/samples/cuda_core/blurImageUnifiedMemory/blurImageUnifiedMemory.py b/samples/cuda_core/blurImageUnifiedMemory/blurImageUnifiedMemory.py index 297ba7ed2a3a..672bc6a5c921 100644 --- a/samples/cuda_core/blurImageUnifiedMemory/blurImageUnifiedMemory.py +++ b/samples/cuda_core/blurImageUnifiedMemory/blurImageUnifiedMemory.py @@ -25,7 +25,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # /// script -# dependencies = ["cuda-python>=13.0.0", "cuda-core>=1.0.0", "numpy>=2.3.2", "pillow>=10.0.0"] +# dependencies = ["cuda-core[cu13]>=1.0.0", "numpy>=2.3.2", "pillow>=10.0.0"] # /// """ diff --git a/samples/cuda_core/blurImageUnifiedMemory/requirements.txt b/samples/cuda_core/blurImageUnifiedMemory/requirements.txt index 5213dcc25460..fee18e8c5dd1 100644 --- a/samples/cuda_core/blurImageUnifiedMemory/requirements.txt +++ b/samples/cuda_core/blurImageUnifiedMemory/requirements.txt @@ -1,6 +1,5 @@ # Image Blur with Unified Memory Sample Requirements -cuda-python>=13.0.0 -cuda-core>=1.0.0 +cuda-core[cu13]>=1.0.0 numpy>=2.3.2 pillow>=10.0.0 diff --git a/samples/cuda_core/copyImageArraytoGPU/README.md b/samples/cuda_core/copyImageArraytoGPU/README.md index b1db08c087db..b1068144eda4 100644 --- a/samples/cuda_core/copyImageArraytoGPU/README.md +++ b/samples/cuda_core/copyImageArraytoGPU/README.md @@ -57,8 +57,7 @@ Copy image arrays between CPU and GPU memory using the modern `cuda.core` API wi - CUDA Toolkit 13.0 or newer - Python 3.11 or newer - NumPy 2.3.2 or newer (required for DLPack support) -- `cuda-python` package (>=13.0.0+) -- `cuda-core` package (>=1.0.0) +- `cuda-core[cu13]` package (>=1.0.0) - `cupy-cuda13x` package (14.0.0+) ## Installation @@ -72,8 +71,7 @@ pip install -r requirements.txt The requirements.txt installs: - `numpy` (2.3.2+, required for DLPack) -- `cuda-python` (>=13.0.0+) -- `cuda-core` (>=1.0.0) +- `cuda-core[cu13]` (>=1.0.0) - `cupy-cuda13x` (14.0.0+) ## How to Run diff --git a/samples/cuda_core/copyImageArraytoGPU/copyImageArraytoGPU.py b/samples/cuda_core/copyImageArraytoGPU/copyImageArraytoGPU.py index 4b0d99b6535c..94661caf7bba 100644 --- a/samples/cuda_core/copyImageArraytoGPU/copyImageArraytoGPU.py +++ b/samples/cuda_core/copyImageArraytoGPU/copyImageArraytoGPU.py @@ -25,7 +25,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # /// script -# dependencies = ["numpy>=2.3.2", "cuda-python>=13.0.0", "cuda-core>=1.0.0", "cupy-cuda13x>=14.0.0"] +# dependencies = ["numpy>=2.3.2", "cuda-core[cu13]>=1.0.0", "cupy-cuda13x>=14.0.0"] # /// """ diff --git a/samples/cuda_core/copyImageArraytoGPU/requirements.txt b/samples/cuda_core/copyImageArraytoGPU/requirements.txt index 31aed2541ce3..86cea2719b2e 100644 --- a/samples/cuda_core/copyImageArraytoGPU/requirements.txt +++ b/samples/cuda_core/copyImageArraytoGPU/requirements.txt @@ -1,6 +1,5 @@ # Image Array Copy to GPU Sample Requirements numpy>=2.3.2 -cuda-python>=13.0.0 -cuda-core>=1.0.0 +cuda-core[cu13]>=1.0.0 cupy-cuda13x>=14.0.0 diff --git a/samples/cuda_core/cudaComputeLambdas/README.md b/samples/cuda_core/cudaComputeLambdas/README.md index 190486e6bfe6..c6db870e7f80 100644 --- a/samples/cuda_core/cudaComputeLambdas/README.md +++ b/samples/cuda_core/cudaComputeLambdas/README.md @@ -59,7 +59,7 @@ The sample exercises three algorithm families: Numba, which needs the toolkit's `nvvm` and `libdevice`). - Python 3.11 or newer - `cuda-cccl` (>=1.0.0) -- `cuda-core` (>=1.0.0) +- `cuda-core[cu13]` (>=1.0.0) - `cupy-cuda13x` (>=14.0.0) - `numba-cuda` (pulled in transitively by `cuda-cccl`) @@ -82,7 +82,7 @@ pip install -r requirements.txt The `requirements.txt` installs: - `cuda-cccl` (>=1.0.0) - ships the `cuda.compute` module -- `cuda-core` (>=1.0.0) +- `cuda-core[cu13]` (>=1.0.0) - `cupy-cuda13x` (>=14.0.0) - `numpy` (>=1.24.0) diff --git a/samples/cuda_core/cudaComputeLambdas/cudaComputeLambdas.py b/samples/cuda_core/cudaComputeLambdas/cudaComputeLambdas.py index 5137adbd2c56..d1cc125b7a53 100644 --- a/samples/cuda_core/cudaComputeLambdas/cudaComputeLambdas.py +++ b/samples/cuda_core/cudaComputeLambdas/cudaComputeLambdas.py @@ -25,7 +25,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # /// script -# dependencies = ["cuda-cccl[cu13]>=1.0.0", "cuda-core>=1.0.0", "cupy-cuda13x>=14.0.0", "numpy>=1.24.0"] +# dependencies = ["cuda-cccl[cu13]>=1.0.0", "cuda-core[cu13]>=1.0.0", "cupy-cuda13x>=14.0.0", "numpy>=1.24.0"] # /// """ diff --git a/samples/cuda_core/cudaComputeLambdas/requirements.txt b/samples/cuda_core/cudaComputeLambdas/requirements.txt index 3110a76e9348..751af4357830 100644 --- a/samples/cuda_core/cudaComputeLambdas/requirements.txt +++ b/samples/cuda_core/cudaComputeLambdas/requirements.txt @@ -1,4 +1,4 @@ cuda-cccl[cu13]>=1.0.0 -cuda-core>=1.0.0 +cuda-core[cu13]>=1.0.0 cupy-cuda13x>=14.0.0 numpy>=1.24.0 diff --git a/samples/cuda_core/cudaGraphs/README.md b/samples/cuda_core/cudaGraphs/README.md index 54837bd16a8a..d19d3c559032 100644 --- a/samples/cuda_core/cudaGraphs/README.md +++ b/samples/cuda_core/cudaGraphs/README.md @@ -66,10 +66,9 @@ place without paying the cost of rebuilding the executable graph. ### Software -- CUDA Toolkit 13.0 or newer (matches `cuda-python` 13.x) +- CUDA Toolkit 13.0 or newer - Python 3.11 or newer -- `cuda-python` (>=13.0.0) -- `cuda-core` (>=1.0.0) +- `cuda-core[cu13]` (>=1.0.0) - `cupy-cuda13x` (>=14.0.0) ## Installation @@ -83,8 +82,7 @@ pip install -r requirements.txt The `requirements.txt` installs: -- `cuda-python` (>=13.0.0) -- `cuda-core` (>=1.0.0) +- `cuda-core[cu13]` (>=1.0.0) - `cupy-cuda13x` (>=14.0.0) ## How to Run diff --git a/samples/cuda_core/cudaGraphs/cudaGraphs.py b/samples/cuda_core/cudaGraphs/cudaGraphs.py index b7aaf0bd5674..dafde271c53d 100644 --- a/samples/cuda_core/cudaGraphs/cudaGraphs.py +++ b/samples/cuda_core/cudaGraphs/cudaGraphs.py @@ -25,7 +25,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # /// script -# dependencies = ["cuda-python>=13.0.0", "cuda-core>=1.0.0", "cupy-cuda13x>=14.0.0"] +# dependencies = ["cuda-core[cu13]>=1.0.0", "cupy-cuda13x>=14.0.0"] # /// """ diff --git a/samples/cuda_core/cudaGraphs/requirements.txt b/samples/cuda_core/cudaGraphs/requirements.txt index c650cd51f174..f7d530ac2fbe 100644 --- a/samples/cuda_core/cudaGraphs/requirements.txt +++ b/samples/cuda_core/cudaGraphs/requirements.txt @@ -1,5 +1,4 @@ # CUDA Graphs Sample Requirements -cuda-python>=13.0.0 -cuda-core>=1.0.0 +cuda-core[cu13]>=1.0.0 cupy-cuda13x>=14.0.0 diff --git a/samples/cuda_core/customPyTorchKernel/README.md b/samples/cuda_core/customPyTorchKernel/README.md index defc05017a26..6e7124c27c8b 100644 --- a/samples/cuda_core/customPyTorchKernel/README.md +++ b/samples/cuda_core/customPyTorchKernel/README.md @@ -10,8 +10,7 @@ This sample demonstrates how to add a custom GPU operation to PyTorch using the - CUDA Toolkit 13.0+ - Python 3.11+ - PyTorch 2.0+ -- cuda-python >= 13.0.0 -- cuda-core >=1.0.0 +- cuda-core[cu13] >=1.0.0 ## Installation diff --git a/samples/cuda_core/customPyTorchKernel/customPyTorchKernel.py b/samples/cuda_core/customPyTorchKernel/customPyTorchKernel.py index b092bc94706c..47217cf7e49a 100644 --- a/samples/cuda_core/customPyTorchKernel/customPyTorchKernel.py +++ b/samples/cuda_core/customPyTorchKernel/customPyTorchKernel.py @@ -25,7 +25,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # /// script -# dependencies = ["cuda-python>=13.0.0", "cuda-core>=1.0.0", "torch>=2.0.0"] +# dependencies = ["cuda-core[cu13]>=1.0.0", "torch>=2.0.0"] # /// """ diff --git a/samples/cuda_core/customPyTorchKernel/requirements.txt b/samples/cuda_core/customPyTorchKernel/requirements.txt index 001018fab75f..104957790235 100644 --- a/samples/cuda_core/customPyTorchKernel/requirements.txt +++ b/samples/cuda_core/customPyTorchKernel/requirements.txt @@ -5,6 +5,5 @@ # CUDA-enabled torch from PyTorch's wheel index first (see README.md): # pip install torch --index-url https://download.pytorch.org/whl/cu128 -cuda-python>=13.0.0 -cuda-core>=1.0.0 +cuda-core[cu13]>=1.0.0 torch>=2.0.0 diff --git a/samples/cuda_core/customTensorFlowKernel/README.md b/samples/cuda_core/customTensorFlowKernel/README.md index 98358970e80e..97d11f0d6954 100644 --- a/samples/cuda_core/customTensorFlowKernel/README.md +++ b/samples/cuda_core/customTensorFlowKernel/README.md @@ -21,8 +21,7 @@ Learn how to add a custom GPU operation to TensorFlow using `cuda.core` with `tf - CUDA Toolkit 13.0+ - Python 3.11+ - TensorFlow 2.10+ -- cuda-python >= 13.0.0 -- cuda-core >=1.0.0 (required for LEGACY_DEFAULT_STREAM) +- cuda-core[cu13] >=1.0.0 (required for LEGACY_DEFAULT_STREAM) - numpy >= 2.3.2 - CuPy (for device pointer access) diff --git a/samples/cuda_core/customTensorFlowKernel/customTensorFlowKernel.py b/samples/cuda_core/customTensorFlowKernel/customTensorFlowKernel.py index 8b4c1c05c3ed..f47ab3142d98 100644 --- a/samples/cuda_core/customTensorFlowKernel/customTensorFlowKernel.py +++ b/samples/cuda_core/customTensorFlowKernel/customTensorFlowKernel.py @@ -25,7 +25,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # /// script -# dependencies = ["numpy>=2.3.2", "tensorflow>=2.10.0", "cupy-cuda13x>=14.0.0", "cuda-python>=13.0.0", "cuda-core>=1.0.0"] +# dependencies = ["numpy>=2.3.2", "tensorflow>=2.10.0", "cupy-cuda13x>=14.0.0", "cuda-core[cu13]>=1.0.0"] # /// """ diff --git a/samples/cuda_core/customTensorFlowKernel/requirements.txt b/samples/cuda_core/customTensorFlowKernel/requirements.txt index ff4c4229de87..a6e391acb9be 100644 --- a/samples/cuda_core/customTensorFlowKernel/requirements.txt +++ b/samples/cuda_core/customTensorFlowKernel/requirements.txt @@ -1,7 +1,7 @@ # TensorFlow Custom GPU Operator using cuda.core # # This sample demonstrates a cuda.core-first approach: -# - cuda-python and cuda-core: Primary GPU management (device, stream, kernel) +# - cuda-core: Primary GPU management (device, stream, kernel) # - TensorFlow 2.10+: Deep learning framework (tf.py_function, tf.custom_gradient) # - CuPy: Internal helper for device pointer access only # @@ -10,5 +10,4 @@ numpy>=2.3.2 tensorflow>=2.10.0 cupy-cuda13x>=14.0.0 -cuda-python>=13.0.0 -cuda-core>=1.0.0 +cuda-core[cu13]>=1.0.0 diff --git a/samples/cuda_core/deviceQuery/README.md b/samples/cuda_core/deviceQuery/README.md index d24c3309b29a..4f064103464a 100644 --- a/samples/cuda_core/deviceQuery/README.md +++ b/samples/cuda_core/deviceQuery/README.md @@ -99,10 +99,9 @@ The sample has two output modes: ### Software: -- CUDA Toolkit 13.0 or newer (recommended; matches `cuda-python` 13.x) +- CUDA Toolkit 13.0 or newer (recommended) - Python 3.11 or newer -- `cuda-python` package (>=13.0.0) -- `cuda-core` package (>=1.0.0) +- `cuda-core[cu13]` package (>=1.0.0) ## Installation @@ -114,8 +113,7 @@ pip install -r requirements.txt ``` The requirements.txt installs: -- `cuda-python` (>=13.0.0) -- `cuda-core` (>=1.0.0) +- `cuda-core[cu13]` (>=1.0.0) ## How to Run diff --git a/samples/cuda_core/deviceQuery/deviceQuery.py b/samples/cuda_core/deviceQuery/deviceQuery.py index 40c35cb08cf0..3a83847b2e68 100755 --- a/samples/cuda_core/deviceQuery/deviceQuery.py +++ b/samples/cuda_core/deviceQuery/deviceQuery.py @@ -25,7 +25,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # /// script -# dependencies = ["cuda-python>=13.0.0", "cuda-core>=1.0.0"] +# dependencies = ["cuda-core[cu13]>=1.0.0"] # /// """ diff --git a/samples/cuda_core/deviceQuery/requirements.txt b/samples/cuda_core/deviceQuery/requirements.txt index a0e4feab6d0f..8e30499cc71e 100644 --- a/samples/cuda_core/deviceQuery/requirements.txt +++ b/samples/cuda_core/deviceQuery/requirements.txt @@ -1,4 +1,3 @@ # Device Query Sample Requirements -cuda-python>=13.0.0 -cuda-core>=1.0.0 +cuda-core[cu13]>=1.0.0 diff --git a/samples/cuda_core/fftSignalAnalysis/fftSignalAnalysis.py b/samples/cuda_core/fftSignalAnalysis/fftSignalAnalysis.py index 8b0b704ffac1..57e2cc0c0a6b 100644 --- a/samples/cuda_core/fftSignalAnalysis/fftSignalAnalysis.py +++ b/samples/cuda_core/fftSignalAnalysis/fftSignalAnalysis.py @@ -25,7 +25,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # /// script -# dependencies = ["cuda-python>=13.0.0", "cuda-core>=1.0.0", "cupy-cuda13x>=14.0.0", "numpy>=2.3.2", "nvidia-cufft"] +# dependencies = ["cuda-core[cu13]>=1.0.0", "cupy-cuda13x>=14.0.0", "numpy>=2.3.2", "nvidia-cufft"] # /// """ diff --git a/samples/cuda_core/fftSignalAnalysis/requirements.txt b/samples/cuda_core/fftSignalAnalysis/requirements.txt index ebd5ca5ba3d1..68dcf533532f 100644 --- a/samples/cuda_core/fftSignalAnalysis/requirements.txt +++ b/samples/cuda_core/fftSignalAnalysis/requirements.txt @@ -1,7 +1,6 @@ # FFT Signal Analysis Requirements -cuda-python>=13.0.0 -cuda-core>=1.0.0 +cuda-core[cu13]>=1.0.0 cupy-cuda13x>=14.0.0 numpy>=2.3.2 nvidia-cufft diff --git a/samples/cuda_core/glInteropFluid/README.md b/samples/cuda_core/glInteropFluid/README.md index a483436a0df3..0b9fff57f42a 100644 --- a/samples/cuda_core/glInteropFluid/README.md +++ b/samples/cuda_core/glInteropFluid/README.md @@ -41,10 +41,9 @@ introduced in cuda-core 1.1. ### Software -- CUDA Toolkit 13.0 or newer (matches ``cuda-python`` 13.x) +- CUDA Toolkit 13.0 or newer - Python 3.11 or newer -- `cuda-python` (>=13.0.0) -- `cuda-core` (>=1.0.0) +- `cuda-core[cu13]` (>=1.1.0) - `numpy` (>=1.24) - `pyglet` (>=2.0) diff --git a/samples/cuda_core/glInteropFluid/glInteropFluid.py b/samples/cuda_core/glInteropFluid/glInteropFluid.py index daec5cc91631..b68596cfa29a 100644 --- a/samples/cuda_core/glInteropFluid/glInteropFluid.py +++ b/samples/cuda_core/glInteropFluid/glInteropFluid.py @@ -87,7 +87,7 @@ # # /// script -# dependencies = ["cuda_bindings", "cuda_core>0.6.0", "pyglet"] +# dependencies = ["cuda-core[cu13]>=1.1.0", "numpy>=1.24", "pyglet>=2.0"] # /// import argparse diff --git a/samples/cuda_core/glInteropFluid/requirements.txt b/samples/cuda_core/glInteropFluid/requirements.txt index 30736f6bf4f5..38b3ebb6f732 100644 --- a/samples/cuda_core/glInteropFluid/requirements.txt +++ b/samples/cuda_core/glInteropFluid/requirements.txt @@ -1,7 +1,6 @@ # glInteropFluid Sample Requirements # Install with: pip install -r requirements.txt -cuda-python>=13.0.0 -cuda-core>=1.0.0 +cuda-core[cu13]>=1.1.0 numpy>=1.24 pyglet>=2.0 diff --git a/samples/cuda_core/glInteropMipmapLod/README.md b/samples/cuda_core/glInteropMipmapLod/README.md index 96013a67e17b..8cfd88f3f5fb 100644 --- a/samples/cuda_core/glInteropMipmapLod/README.md +++ b/samples/cuda_core/glInteropMipmapLod/README.md @@ -38,8 +38,7 @@ The sample: - CUDA Toolkit 13.0 or newer - Python 3.11 or newer -- `cuda-python` (>=13.0.0) -- `cuda-core` (>=1.0.0) +- `cuda-core[cu13]` (>=1.1.0) - `numpy` (>=1.24) - `pyglet` (>=2.0) diff --git a/samples/cuda_core/glInteropMipmapLod/glInteropMipmapLod.py b/samples/cuda_core/glInteropMipmapLod/glInteropMipmapLod.py index 6d4b4da40c6e..23cdf8481ba9 100644 --- a/samples/cuda_core/glInteropMipmapLod/glInteropMipmapLod.py +++ b/samples/cuda_core/glInteropMipmapLod/glInteropMipmapLod.py @@ -82,7 +82,7 @@ # # /// script -# dependencies = ["cuda_bindings", "cuda_core>0.6.0", "pyglet"] +# dependencies = ["cuda-core[cu13]>=1.1.0", "numpy>=1.24", "pyglet>=2.0"] # /// import argparse diff --git a/samples/cuda_core/glInteropMipmapLod/requirements.txt b/samples/cuda_core/glInteropMipmapLod/requirements.txt index 0fe593c6286e..863abcec77f8 100644 --- a/samples/cuda_core/glInteropMipmapLod/requirements.txt +++ b/samples/cuda_core/glInteropMipmapLod/requirements.txt @@ -1,7 +1,6 @@ # glInteropMipmapLod Sample Requirements # Install with: pip install -r requirements.txt -cuda-python>=13.0.0 -cuda-core>=1.0.0 +cuda-core[cu13]>=1.1.0 numpy>=1.24 pyglet>=2.0 diff --git a/samples/cuda_core/glInteropPlasma/README.md b/samples/cuda_core/glInteropPlasma/README.md index c3b9c443421c..4a2b50376e9d 100644 --- a/samples/cuda_core/glInteropPlasma/README.md +++ b/samples/cuda_core/glInteropPlasma/README.md @@ -64,10 +64,9 @@ Each frame: ### Software -- CUDA Toolkit 13.0 or newer (matches `cuda-python` 13.x) +- CUDA Toolkit 13.0 or newer - Python 3.11 or newer -- `cuda-python` (>=13.0.0) -- `cuda-core` (>=1.0.0) +- `cuda-core[cu13]` (>=1.0.0) - `numpy` (>=2.3.2) - `pyglet` (>=2.0) diff --git a/samples/cuda_core/glInteropPlasma/glInteropPlasma.py b/samples/cuda_core/glInteropPlasma/glInteropPlasma.py index ff96d5980799..e525c4fb782b 100644 --- a/samples/cuda_core/glInteropPlasma/glInteropPlasma.py +++ b/samples/cuda_core/glInteropPlasma/glInteropPlasma.py @@ -25,7 +25,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # /// script -# dependencies = ["cuda-python>=13.0.0", "cuda-core>=1.0.0", "numpy>=2.3.2", "pyglet>=2.0"] +# dependencies = ["cuda-core[cu13]>=1.0.0", "numpy>=2.3.2", "pyglet>=2.0"] # /// """ diff --git a/samples/cuda_core/glInteropPlasma/requirements.txt b/samples/cuda_core/glInteropPlasma/requirements.txt index d280c6a42580..8bef235a3db8 100644 --- a/samples/cuda_core/glInteropPlasma/requirements.txt +++ b/samples/cuda_core/glInteropPlasma/requirements.txt @@ -1,7 +1,6 @@ # glInteropPlasma Sample Requirements # Install with: pip install -r requirements.txt -cuda-python>=13.0.0 -cuda-core>=1.0.0 +cuda-core[cu13]>=1.0.0 numpy>=2.3.2 pyglet>=2.0 diff --git a/samples/cuda_core/greenContext/README.md b/samples/cuda_core/greenContext/README.md index f602a0349b09..1f10496dea6d 100644 --- a/samples/cuda_core/greenContext/README.md +++ b/samples/cuda_core/greenContext/README.md @@ -94,7 +94,7 @@ partition. The reference row lets you separate those two effects: - NVIDIA driver >= 12.4 - CUDA Toolkit 13.0 or newer. - Python 3.11 or newer. -- `cuda-core` (`>=1.0.0`) +- `cuda-core[cu13]` (`>=1.0.0`) ## Installation diff --git a/samples/cuda_core/greenContext/greenContext.py b/samples/cuda_core/greenContext/greenContext.py index a9145947608d..699ea35f5648 100644 --- a/samples/cuda_core/greenContext/greenContext.py +++ b/samples/cuda_core/greenContext/greenContext.py @@ -25,7 +25,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # /// script -# dependencies = ["cuda-python>=13.0.0", "cuda-core>=1.0.0", "numpy>=2.3.2"] +# dependencies = ["cuda-core[cu13]>=1.0.0", "numpy>=2.3.2"] # /// """ diff --git a/samples/cuda_core/greenContext/requirements.txt b/samples/cuda_core/greenContext/requirements.txt index e25bb1582374..8add8bac6db4 100644 --- a/samples/cuda_core/greenContext/requirements.txt +++ b/samples/cuda_core/greenContext/requirements.txt @@ -1,3 +1,2 @@ -cuda-python>=13.0.0 -cuda-core>=1.0.0 +cuda-core[cu13]>=1.0.0 numpy>=2.3.2 diff --git a/samples/cuda_core/ipcMemoryPool/README.md b/samples/cuda_core/ipcMemoryPool/README.md index 64b4191a973e..9e44578ee1ee 100644 --- a/samples/cuda_core/ipcMemoryPool/README.md +++ b/samples/cuda_core/ipcMemoryPool/README.md @@ -65,10 +65,9 @@ round-trip test: ### Software - Linux x86_64 (POSIX file-descriptor IPC handles are not available on Windows or macOS) -- CUDA Toolkit 13.0 or newer (matches `cuda-python` 13.x) +- CUDA Toolkit 13.0 or newer - Python 3.11 or newer -- `cuda-python` (>=13.0.0) -- `cuda-core` (>=1.0.0) +- `cuda-core[cu13]` (>=1.0.0) - `cupy-cuda13x` (>=14.0.0) ## Installation @@ -82,8 +81,7 @@ pip install -r requirements.txt The `requirements.txt` installs: -- `cuda-python` (>=13.0.0) -- `cuda-core` (>=1.0.0) +- `cuda-core[cu13]` (>=1.0.0) - `cupy-cuda13x` (>=14.0.0) ## How to Run diff --git a/samples/cuda_core/ipcMemoryPool/ipcMemoryPool.py b/samples/cuda_core/ipcMemoryPool/ipcMemoryPool.py index 2c01ff031dd7..9493278e7683 100644 --- a/samples/cuda_core/ipcMemoryPool/ipcMemoryPool.py +++ b/samples/cuda_core/ipcMemoryPool/ipcMemoryPool.py @@ -25,7 +25,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # /// script -# dependencies = ["cuda-python>=13.0.0", "cuda-core>=1.0.0", "cupy-cuda13x>=14.0.0", "numpy>=1.24.0"] +# dependencies = ["cuda-core[cu13]>=1.0.0", "cupy-cuda13x>=14.0.0", "numpy>=1.24.0"] # /// """ diff --git a/samples/cuda_core/ipcMemoryPool/requirements.txt b/samples/cuda_core/ipcMemoryPool/requirements.txt index c33f5dd8d9f0..959c2b12675b 100644 --- a/samples/cuda_core/ipcMemoryPool/requirements.txt +++ b/samples/cuda_core/ipcMemoryPool/requirements.txt @@ -1,4 +1,3 @@ -cuda-python>=13.0.0 -cuda-core>=1.0.0 +cuda-core[cu13]>=1.0.0 cupy-cuda13x>=14.0.0 numpy>=1.24.0 diff --git a/samples/cuda_core/jitLtoLinking/README.md b/samples/cuda_core/jitLtoLinking/README.md index 6c84f158ffdf..a8457b4794f8 100644 --- a/samples/cuda_core/jitLtoLinking/README.md +++ b/samples/cuda_core/jitLtoLinking/README.md @@ -68,10 +68,9 @@ mode are verified against a NumPy reference. ### Software -- CUDA Toolkit 13.0 or newer (matches `cuda-python` 13.x) +- CUDA Toolkit 13.0 or newer - Python 3.11 or newer -- `cuda-python` (>=13.0.0) -- `cuda-core` (>=1.0.0) +- `cuda-core[cu13]` (>=1.0.0) - `cupy-cuda13x` (>=14.0.0) ## Installation @@ -85,8 +84,7 @@ pip install -r requirements.txt The `requirements.txt` installs: -- `cuda-python` (>=13.0.0) -- `cuda-core` (>=1.0.0) +- `cuda-core[cu13]` (>=1.0.0) - `cupy-cuda13x` (>=14.0.0) ## How to Run diff --git a/samples/cuda_core/jitLtoLinking/jitLtoLinking.py b/samples/cuda_core/jitLtoLinking/jitLtoLinking.py index 8530b64b09d8..32af0f2dabdc 100644 --- a/samples/cuda_core/jitLtoLinking/jitLtoLinking.py +++ b/samples/cuda_core/jitLtoLinking/jitLtoLinking.py @@ -25,7 +25,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # /// script -# dependencies = ["cuda-python>=13.0.0", "cuda-core>=1.0.0", "cupy-cuda13x>=14.0.0"] +# dependencies = ["cuda-core[cu13]>=1.0.0", "cupy-cuda13x>=14.0.0"] # /// """ diff --git a/samples/cuda_core/jitLtoLinking/requirements.txt b/samples/cuda_core/jitLtoLinking/requirements.txt index 3b328a39b0ce..35a8f3dd77c6 100644 --- a/samples/cuda_core/jitLtoLinking/requirements.txt +++ b/samples/cuda_core/jitLtoLinking/requirements.txt @@ -1,5 +1,4 @@ # JIT + LTO Linking Sample Requirements -cuda-python>=13.0.0 -cuda-core>=1.0.0 +cuda-core[cu13]>=1.0.0 cupy-cuda13x>=14.0.0 diff --git a/samples/cuda_core/kernelNsysProfile/README.md b/samples/cuda_core/kernelNsysProfile/README.md index c0f85c9f76a8..3a5b97e37c9c 100644 --- a/samples/cuda_core/kernelNsysProfile/README.md +++ b/samples/cuda_core/kernelNsysProfile/README.md @@ -17,7 +17,7 @@ This sample demonstrates how to profile custom CUDA C++ kernels compiled and lau - NVIDIA GPU with Compute Capability 7.0+ - CUDA Toolkit 13.0+ - Python 3.11+ -- Packages: `numpy`, `cuda-python`, `cuda-core`, `cupy-cuda13x`, `nvtx` (see `requirements.txt`; NumPy >=2.3.2) +- Packages: `numpy`, `cuda-core[cu13]`, `cupy-cuda13x`, `nvtx` (see `requirements.txt`; NumPy >=2.3.2) **Install:** ```bash diff --git a/samples/cuda_core/kernelNsysProfile/kernelNsysProfile.py b/samples/cuda_core/kernelNsysProfile/kernelNsysProfile.py index 9852ce2291f6..197cdd34176e 100644 --- a/samples/cuda_core/kernelNsysProfile/kernelNsysProfile.py +++ b/samples/cuda_core/kernelNsysProfile/kernelNsysProfile.py @@ -25,7 +25,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # /// script -# dependencies = ["numpy>=2.3.2", "cuda-python>=13.0.0", "cuda-core>=1.0.0", "cupy-cuda13x>=14.0.0", "nvtx"] +# dependencies = ["numpy>=2.3.2", "cuda-core[cu13]>=1.0.0", "cupy-cuda13x>=14.0.0", "nvtx"] # /// """ diff --git a/samples/cuda_core/kernelNsysProfile/requirements.txt b/samples/cuda_core/kernelNsysProfile/requirements.txt index e86d7bbf31fc..af92b6c94957 100644 --- a/samples/cuda_core/kernelNsysProfile/requirements.txt +++ b/samples/cuda_core/kernelNsysProfile/requirements.txt @@ -1,7 +1,6 @@ # Nsight System Kernels Profiling Sample - Requirements numpy>=2.3.2 -cuda-python>=13.0.0 -cuda-core>=1.0.0 +cuda-core[cu13]>=1.0.0 cupy-cuda13x>=14.0.0 nvtx diff --git a/samples/cuda_core/launchConfigTuning/launchConfigTuning.py b/samples/cuda_core/launchConfigTuning/launchConfigTuning.py index d4f17e53321f..f087a48b6a3a 100644 --- a/samples/cuda_core/launchConfigTuning/launchConfigTuning.py +++ b/samples/cuda_core/launchConfigTuning/launchConfigTuning.py @@ -25,7 +25,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # /// script -# dependencies = ["cuda-python>=13.0.0", "cuda-core>=1.0.0", "numpy>=2.3.2"] +# dependencies = ["cuda-core[cu13]>=1.0.0", "numpy>=2.3.2"] # /// """ diff --git a/samples/cuda_core/launchConfigTuning/requirements.txt b/samples/cuda_core/launchConfigTuning/requirements.txt index 326e8c9eab4a..9efdac260f37 100644 --- a/samples/cuda_core/launchConfigTuning/requirements.txt +++ b/samples/cuda_core/launchConfigTuning/requirements.txt @@ -1,6 +1,5 @@ # Launch Configuration Tuning Sample Requirements # Requires Python 3.11+, CUDA Toolkit 13.0+ -cuda-python>=13.0.0 -cuda-core>=1.0.0 +cuda-core[cu13]>=1.0.0 numpy>=2.3.2 diff --git a/samples/cuda_core/matrixMulSharedMem/matrixMulSharedMem.py b/samples/cuda_core/matrixMulSharedMem/matrixMulSharedMem.py index a6f3cc3ad4d2..8803a6e88ed4 100644 --- a/samples/cuda_core/matrixMulSharedMem/matrixMulSharedMem.py +++ b/samples/cuda_core/matrixMulSharedMem/matrixMulSharedMem.py @@ -25,7 +25,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # /// script -# dependencies = ["cuda-python>=13.0.0", "cuda-core>=1.0.0", "cupy-cuda13x>=14.0.0", "numpy>=1.24", "nvmath-python[cu13]>=1.0.0"] +# dependencies = ["cuda-core[cu13]>=1.0.0", "cupy-cuda13x>=14.0.0", "numpy>=1.24", "nvmath-python[cu13]>=1.0.0"] # /// """ diff --git a/samples/cuda_core/matrixMulSharedMem/requirements.txt b/samples/cuda_core/matrixMulSharedMem/requirements.txt index d6576794e9d3..9bc16f82406b 100644 --- a/samples/cuda_core/matrixMulSharedMem/requirements.txt +++ b/samples/cuda_core/matrixMulSharedMem/requirements.txt @@ -1,8 +1,7 @@ # Matrix Multiplication with Shared Memory (GEMM) Requirements # Install with: pip install -r requirements.txt -cuda-python>=13.0.0 -cuda-core>=1.0.0 +cuda-core[cu13]>=1.0.0 cupy-cuda13x>=14.0.0 numpy>=1.24 nvmath-python[cu13]>=1.0.0 diff --git a/samples/cuda_core/memoryResources/README.md b/samples/cuda_core/memoryResources/README.md index b3aff8e112e2..de671e91896c 100644 --- a/samples/cuda_core/memoryResources/README.md +++ b/samples/cuda_core/memoryResources/README.md @@ -75,10 +75,9 @@ result is verified on the host. ### Software -- CUDA Toolkit 13.0 or newer (matches `cuda-python` 13.x) +- CUDA Toolkit 13.0 or newer - Python 3.11 or newer -- `cuda-python` (>=13.0.0) -- `cuda-core` (>=1.0.0) +- `cuda-core[cu13]` (>=1.0.0) - `cupy-cuda13x` (>=14.0.0) - `numpy` (>=2.2.5; earlier versions expose DLPack arrays as read-only) @@ -105,8 +104,7 @@ pip install -r requirements.txt The `requirements.txt` installs: -- `cuda-python` (>=13.0.0) -- `cuda-core` (>=1.0.0) +- `cuda-core[cu13]` (>=1.0.0) - `cupy-cuda13x` (>=14.0.0) - `numpy` (>=2.2.5) diff --git a/samples/cuda_core/memoryResources/memoryResources.py b/samples/cuda_core/memoryResources/memoryResources.py index c45372354d23..c0968e287c61 100644 --- a/samples/cuda_core/memoryResources/memoryResources.py +++ b/samples/cuda_core/memoryResources/memoryResources.py @@ -25,7 +25,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # /// script -# dependencies = ["cuda-python>=13.0.0", "cuda-core>=1.0.0", "cupy-cuda13x>=14.0.0", "numpy>=2.2.5"] +# dependencies = ["cuda-core[cu13]>=1.0.0", "cupy-cuda13x>=14.0.0", "numpy>=2.2.5"] # /// """ diff --git a/samples/cuda_core/memoryResources/requirements.txt b/samples/cuda_core/memoryResources/requirements.txt index 115a00fb119d..d34348398fb6 100644 --- a/samples/cuda_core/memoryResources/requirements.txt +++ b/samples/cuda_core/memoryResources/requirements.txt @@ -1,6 +1,5 @@ # Memory Resources Sample Requirements -cuda-python>=13.0.0 -cuda-core>=1.0.0 +cuda-core[cu13]>=1.0.0 cupy-cuda13x>=14.0.0 numpy>=2.2.5 diff --git a/samples/cuda_core/multiGPUGradientAverage/multiGPUGradientAverage.py b/samples/cuda_core/multiGPUGradientAverage/multiGPUGradientAverage.py index 2daba66bbaec..72bd168ab445 100644 --- a/samples/cuda_core/multiGPUGradientAverage/multiGPUGradientAverage.py +++ b/samples/cuda_core/multiGPUGradientAverage/multiGPUGradientAverage.py @@ -25,7 +25,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # /// script -# dependencies = ["mpi4py>=3.1.4", "cupy-cuda13x>=14.0.0", "cuda-python>=13.0.0", "cuda-core>=1.0.0"] +# dependencies = ["mpi4py>=3.1.4", "cupy-cuda13x>=14.0.0", "cuda-core[cu13]>=1.0.0"] # /// """ diff --git a/samples/cuda_core/multiGPUGradientAverage/requirements.txt b/samples/cuda_core/multiGPUGradientAverage/requirements.txt index 7ff01293945c..9bbb16f91ea9 100644 --- a/samples/cuda_core/multiGPUGradientAverage/requirements.txt +++ b/samples/cuda_core/multiGPUGradientAverage/requirements.txt @@ -8,11 +8,10 @@ mpi4py>=3.1.4 cupy-cuda13x>=14.0.0 # CUDA Python bindings (low-level CUDA driver API) -cuda-python>=13.0.0 # cuda.core - Modern Python interface for CUDA # Provides Program, LaunchConfig, Device, and launch APIs -cuda-core>=1.0.0 +cuda-core[cu13]>=1.0.0 # Note: This sample uses host-staging for MPI communication # Standard MPI installation is sufficient (no CUDA-aware MPI required) diff --git a/samples/cuda_core/numpyVsCupy/numpyVsCupy.py b/samples/cuda_core/numpyVsCupy/numpyVsCupy.py index 55a6048b7978..d3752776fe1e 100644 --- a/samples/cuda_core/numpyVsCupy/numpyVsCupy.py +++ b/samples/cuda_core/numpyVsCupy/numpyVsCupy.py @@ -25,7 +25,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # /// script -# dependencies = ["numpy>=2.3.2", "cuda-python>=13.0.0", "cuda-core>=1.0.0", "cupy-cuda13x>=14.0.0", "nvidia-cublas"] +# dependencies = ["numpy>=2.3.2", "cuda-core[cu13]>=1.0.0", "cupy-cuda13x>=14.0.0", "nvidia-cublas"] # /// import argparse diff --git a/samples/cuda_core/numpyVsCupy/requirements.txt b/samples/cuda_core/numpyVsCupy/requirements.txt index 8dcb35f58aa8..92c640df318f 100644 --- a/samples/cuda_core/numpyVsCupy/requirements.txt +++ b/samples/cuda_core/numpyVsCupy/requirements.txt @@ -2,7 +2,6 @@ # Install with: pip install -r requirements.txt numpy>=2.3.2 -cuda-python>=13.0.0 -cuda-core>=1.0.0 +cuda-core[cu13]>=1.0.0 cupy-cuda13x>=14.0.0 nvidia-cublas diff --git a/samples/cuda_core/pageRank/README.md b/samples/cuda_core/pageRank/README.md index 146bde5ce639..923aff1f33f4 100644 --- a/samples/cuda_core/pageRank/README.md +++ b/samples/cuda_core/pageRank/README.md @@ -1,23 +1,5 @@ # Sample: PageRank Algorithm (Python) -> **Known issue — version-pinned sample.** Unlike the other samples in this -> repository, this sample is pinned to `cuda-core<1.0.0`. The reason is that -> `cudf-cu13` transitively requires `numba-cuda<0.29.0`, and every -> `numba-cuda` release in that range pins `cuda-core<1.0.0`. Installing this -> sample's `requirements.txt` into a shared environment will downgrade -> `cuda-core` and break the other samples (which use the 1.0 API). -> -> The recommended workflow is one of: -> -> - Install this sample's requirements in a **dedicated virtual -> environment**, or -> - Re-run the other samples' `pip install -r requirements.txt` afterwards -> to upgrade `cuda-core` back to 1.0. -> -> This sample will be re-aligned with the rest of the repository -> (`cuda-core>=1.0.0`) once `cudf-cu13` ships a release that lifts its -> `numba-cuda` upper bound. - ## Description Demonstrates GPU-accelerated PageRank computation for graph analysis using RAPIDS cuGraph, with cuda.core for device, stream, and GPU timing. This sample focuses on cuda.core integration with high-level libraries (cuGraph/cuDF); for custom kernel programming (Program, LaunchConfig, launch), see the blockwiseSum sample. diff --git a/samples/cuda_core/pageRank/pageRank.py b/samples/cuda_core/pageRank/pageRank.py index dcf5679405d1..fd7d301494a4 100644 --- a/samples/cuda_core/pageRank/pageRank.py +++ b/samples/cuda_core/pageRank/pageRank.py @@ -25,7 +25,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # /// script -# dependencies = ["cuda-python>=13.0.0", "cuda-core<1.0.0", "cugraph-cu13>=26.0.0", "cudf-cu13>=26.0.0", "dask-cuda>=26.4.0", "cupy-cuda13x>=14.0.0", "numpy>=2.3.2"] +# dependencies = ["cuda-core[cu13]>=1.0.0", "cugraph-cu13>=26.0.0", "cudf-cu13>=26.0.0", "dask-cuda>=26.4.0", "cupy-cuda13x>=14.0.0", "numpy>=2.3.2"] # /// """ diff --git a/samples/cuda_core/pageRank/requirements.txt b/samples/cuda_core/pageRank/requirements.txt index fafc9dae18fb..7abc01a85bfa 100644 --- a/samples/cuda_core/pageRank/requirements.txt +++ b/samples/cuda_core/pageRank/requirements.txt @@ -1,8 +1,6 @@ # PageRank Requirements (RAPIDS cuGraph) -cuda-python>=13.0.0 -# cudf-cu13 transitively pins numba-cuda<0.29.0 which requires cuda-core<1.0.0 -cuda-core<1.0.0 +cuda-core[cu13]>=1.0.0 cugraph-cu13>=26.0.0 cudf-cu13>=26.0.0 # dask-cuda <26.4 incorrectly pins cuda-core==0.3.*; require the fixed release diff --git a/samples/cuda_core/parallelHistogram/parallelHistogram.py b/samples/cuda_core/parallelHistogram/parallelHistogram.py index a105ed102e11..abdce055e9e2 100644 --- a/samples/cuda_core/parallelHistogram/parallelHistogram.py +++ b/samples/cuda_core/parallelHistogram/parallelHistogram.py @@ -25,7 +25,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # /// script -# dependencies = ["cuda-python>=13.0.0", "cuda-core>=1.0.0", "numpy>=2.3.2", "cupy-cuda13x>=14.0.0", "nvidia-curand"] +# dependencies = ["cuda-core[cu13]>=1.0.0", "numpy>=2.3.2", "cupy-cuda13x>=14.0.0", "nvidia-curand"] # /// """ diff --git a/samples/cuda_core/parallelHistogram/requirements.txt b/samples/cuda_core/parallelHistogram/requirements.txt index 7a80cf35a373..522eef995487 100644 --- a/samples/cuda_core/parallelHistogram/requirements.txt +++ b/samples/cuda_core/parallelHistogram/requirements.txt @@ -1,8 +1,7 @@ # Parallel Histogram with Atomics Sample Requirements # Requires Python 3.11+, CUDA Toolkit 13.0+ -cuda-python>=13.0.0 -cuda-core>=1.0.0 +cuda-core[cu13]>=1.0.0 numpy>=2.3.2 cupy-cuda13x>=14.0.0 nvidia-curand diff --git a/samples/cuda_core/parallelReduction/README.md b/samples/cuda_core/parallelReduction/README.md index 757d029a4a03..55fb57d908fb 100644 --- a/samples/cuda_core/parallelReduction/README.md +++ b/samples/cuda_core/parallelReduction/README.md @@ -51,8 +51,7 @@ if (tid % (2 * s) == 0) { // Don't do this! - CUDA Toolkit 13.0+ - Python 3.11+ -- `cuda-python` (13.0.0+) -- `cuda-core` (>=1.0.0) +- `cuda-core[cu13]` (>=1.0.0) - `cuda-cccl` (1.0.0+) - `cupy-cuda13x` (>=14.0.0) - `numpy` (>=2.3.2) diff --git a/samples/cuda_core/parallelReduction/parallelReduction.py b/samples/cuda_core/parallelReduction/parallelReduction.py index 32b0f19f1d74..a77822596561 100644 --- a/samples/cuda_core/parallelReduction/parallelReduction.py +++ b/samples/cuda_core/parallelReduction/parallelReduction.py @@ -25,7 +25,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # /// script -# dependencies = ["cuda-python>=13.0.0", "cuda-core>=1.0.0", "cuda-cccl>=1.0.0", "cupy-cuda13x>=14.0.0", "numpy>=2.3.2"] +# dependencies = ["cuda-core[cu13]>=1.0.0", "cuda-cccl>=1.0.0", "cupy-cuda13x>=14.0.0", "numpy>=2.3.2"] # /// """ diff --git a/samples/cuda_core/parallelReduction/requirements.txt b/samples/cuda_core/parallelReduction/requirements.txt index a3acd8865360..ce5f9e3f3e8b 100644 --- a/samples/cuda_core/parallelReduction/requirements.txt +++ b/samples/cuda_core/parallelReduction/requirements.txt @@ -1,7 +1,6 @@ # Parallel Reduction Sample Requirements -cuda-python>=13.0.0 -cuda-core>=1.0.0 +cuda-core[cu13]>=1.0.0 cuda-cccl>=1.0.0 cupy-cuda13x>=14.0.0 numpy>=2.3.2 diff --git a/samples/cuda_core/persistentProgramCache/README.md b/samples/cuda_core/persistentProgramCache/README.md index 1544907b85ef..d022a7ee0dd0 100644 --- a/samples/cuda_core/persistentProgramCache/README.md +++ b/samples/cuda_core/persistentProgramCache/README.md @@ -68,10 +68,9 @@ kernel = module.get_kernel(KERNEL_NAME) ### Software -- CUDA Toolkit 13.0 or newer (matches `cuda-python` 13.x) +- CUDA Toolkit 13.0 or newer - Python 3.11 or newer -- `cuda-python` (>=13.0.0) -- `cuda-core` (>=1.0.0) +- `cuda-core[cu13]` (>=1.0.0) - `cupy-cuda13x` (>=14.0.0) - `numpy` (>=2.3.2) @@ -86,8 +85,7 @@ pip install -r requirements.txt The `requirements.txt` installs: -- `cuda-python` (>=13.0.0) -- `cuda-core` (>=1.0.0) +- `cuda-core[cu13]` (>=1.0.0) - `cupy-cuda13x` (>=14.0.0) - `numpy` (>=2.3.2) diff --git a/samples/cuda_core/persistentProgramCache/persistentProgramCache.py b/samples/cuda_core/persistentProgramCache/persistentProgramCache.py index a3dd74e57331..aeeb307904f9 100644 --- a/samples/cuda_core/persistentProgramCache/persistentProgramCache.py +++ b/samples/cuda_core/persistentProgramCache/persistentProgramCache.py @@ -25,7 +25,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # /// script -# dependencies = ["cuda-python>=13.0.0", "cuda-core>=1.0.0", "cupy-cuda13x>=14.0.0", "numpy>=2.3.2"] +# dependencies = ["cuda-core[cu13]>=1.0.0", "cupy-cuda13x>=14.0.0", "numpy>=2.3.2"] # /// """ diff --git a/samples/cuda_core/persistentProgramCache/requirements.txt b/samples/cuda_core/persistentProgramCache/requirements.txt index ef65805ec55a..f7692418fb02 100644 --- a/samples/cuda_core/persistentProgramCache/requirements.txt +++ b/samples/cuda_core/persistentProgramCache/requirements.txt @@ -1,6 +1,5 @@ # Persistent Program Cache Sample Requirements -cuda-python>=13.0.0 -cuda-core>=1.0.0 +cuda-core[cu13]>=1.0.0 cupy-cuda13x>=14.0.0 numpy>=2.3.2 diff --git a/samples/cuda_core/prefixSum/README.md b/samples/cuda_core/prefixSum/README.md index d84d729d4b1b..403d9c9b7fd4 100644 --- a/samples/cuda_core/prefixSum/README.md +++ b/samples/cuda_core/prefixSum/README.md @@ -20,8 +20,7 @@ Demonstrates parallel prefix sum (scan) algorithms using cuda.compute with cuda. - CUDA Toolkit 13.0+ - Python 3.11+ -- `cuda-python` (13.0.0+) -- `cuda-core` (>=1.0.0) +- `cuda-core[cu13]` (>=1.0.0) - `cuda-cccl` (1.0.0+) - `cupy-cuda13x` (14.0.0+) - `numpy` (>=2.3.2) diff --git a/samples/cuda_core/prefixSum/prefixSum.py b/samples/cuda_core/prefixSum/prefixSum.py index a1ba73e3b975..ee9bd9977650 100644 --- a/samples/cuda_core/prefixSum/prefixSum.py +++ b/samples/cuda_core/prefixSum/prefixSum.py @@ -25,7 +25,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # /// script -# dependencies = ["cuda-python>=13.0.0", "cuda-core>=1.0.0", "cuda-cccl>=1.0.0", "cupy-cuda13x>=14.0.0", "numpy>=2.3.2"] +# dependencies = ["cuda-core[cu13]>=1.0.0", "cuda-cccl>=1.0.0", "cupy-cuda13x>=14.0.0", "numpy>=2.3.2"] # /// """ diff --git a/samples/cuda_core/prefixSum/requirements.txt b/samples/cuda_core/prefixSum/requirements.txt index b1c5b79c6a5f..e4ee51e06c3e 100644 --- a/samples/cuda_core/prefixSum/requirements.txt +++ b/samples/cuda_core/prefixSum/requirements.txt @@ -1,8 +1,7 @@ # Prefix Sum Sample Requirements # Requires Python 3.11+, CUDA Toolkit 13.0+ -cuda-python>=13.0.0 -cuda-core>=1.0.0 +cuda-core[cu13]>=1.0.0 cuda-cccl>=1.0.0 cupy-cuda13x>=14.0.0 numpy>=2.3.2 diff --git a/samples/cuda_core/processCheckpoint/README.md b/samples/cuda_core/processCheckpoint/README.md index 0ae20c132ea7..9aa003b0fe24 100644 --- a/samples/cuda_core/processCheckpoint/README.md +++ b/samples/cuda_core/processCheckpoint/README.md @@ -98,7 +98,7 @@ running ---------> locked ------------> checkpointed -----------> locked ------- - NVIDIA driver with CUDA process checkpoint support. - CUDA Toolkit 13.0 or newer. - Python 3.11 or newer. -- `cuda-core >= 1.0.0`. +- `cuda-core[cu13] >= 1.3.0`. On non-Linux platforms and integrated GPUs, the sample prints a diagnostic and waives without attempting the checkpoint lifecycle. diff --git a/samples/cuda_core/processCheckpoint/processCheckpoint.py b/samples/cuda_core/processCheckpoint/processCheckpoint.py index be2cd67b1fcd..de6639c70dbe 100644 --- a/samples/cuda_core/processCheckpoint/processCheckpoint.py +++ b/samples/cuda_core/processCheckpoint/processCheckpoint.py @@ -25,7 +25,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # /// script -# dependencies = ["cuda-python>=13.0.0,<13.3.0", "cuda-core>=1.0.0", "numpy>=2.3.2"] +# dependencies = ["cuda-core[cu13]>=1.3.0", "numpy>=2.3.2"] # /// """ diff --git a/samples/cuda_core/processCheckpoint/requirements.txt b/samples/cuda_core/processCheckpoint/requirements.txt index a0605400b314..8e25cf10e774 100644 --- a/samples/cuda_core/processCheckpoint/requirements.txt +++ b/samples/cuda_core/processCheckpoint/requirements.txt @@ -1,4 +1,4 @@ -# cuda-bindings 13.3.0 drops the CUcheckpointRestoreArgs alias that cuda-core requires -cuda-python>=13.0.0,<13.3.0 -cuda-core>=1.0.0 +# cuda-core 1.3.0's cu13 extra requires cuda-bindings>=13.5.0. That excludes cuda-bindings +# 13.3.0, which lacked the CUcheckpointRestoreArgs binding that cuda-core uses. +cuda-core[cu13]>=1.3.0 numpy>=2.3.2 diff --git a/samples/cuda_core/reduction/reduction.py b/samples/cuda_core/reduction/reduction.py index 5903bb8a4c6e..a9b2d7e785ee 100644 --- a/samples/cuda_core/reduction/reduction.py +++ b/samples/cuda_core/reduction/reduction.py @@ -25,7 +25,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # /// script -# dependencies = ["numpy>=2.3.2", "cuda-core>=1.0.0", "cuda-python>=13.0.0", "cupy-cuda13x>=14.0.0"] +# dependencies = ["numpy>=2.3.2", "cuda-core[cu13]>=1.0.0", "cupy-cuda13x>=14.0.0"] # /// """ diff --git a/samples/cuda_core/reduction/requirements.txt b/samples/cuda_core/reduction/requirements.txt index 84a6b40aef6f..45806ce6f5d0 100644 --- a/samples/cuda_core/reduction/requirements.txt +++ b/samples/cuda_core/reduction/requirements.txt @@ -2,7 +2,6 @@ # Install with: pip install -r requirements.txt numpy>=2.3.2 -cuda-core>=1.0.0 -cuda-python>=13.0.0 +cuda-core[cu13]>=1.0.0 # Use cupy-cuda13x>=14.0.0 for cp.cuda.Stream.from_external(stream) cupy-cuda13x>=14.0.0 diff --git a/samples/cuda_core/reductionMultiBlockCG/reductionMultiBlockCG.py b/samples/cuda_core/reductionMultiBlockCG/reductionMultiBlockCG.py index 03e79f951d76..b664ac84e3f8 100644 --- a/samples/cuda_core/reductionMultiBlockCG/reductionMultiBlockCG.py +++ b/samples/cuda_core/reductionMultiBlockCG/reductionMultiBlockCG.py @@ -25,7 +25,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # /// script -# dependencies = ["numpy>=2.3.2", "cuda-core>=1.0.0", "cuda-python>=13.0.0", "cuda-cccl>=1.0.0", "cupy-cuda13x>=14.0.0"] +# dependencies = ["numpy>=2.3.2", "cuda-core[cu13]>=1.0.0", "cuda-cccl>=1.0.0", "cupy-cuda13x>=14.0.0"] # /// """ diff --git a/samples/cuda_core/reductionMultiBlockCG/requirements.txt b/samples/cuda_core/reductionMultiBlockCG/requirements.txt index 6d8c89fed045..565c18252783 100644 --- a/samples/cuda_core/reductionMultiBlockCG/requirements.txt +++ b/samples/cuda_core/reductionMultiBlockCG/requirements.txt @@ -2,8 +2,7 @@ # Install with: pip install -r requirements.txt numpy>=2.3.2 -cuda-core>=1.0.0 -cuda-python>=13.0.0 +cuda-core[cu13]>=1.0.0 # Headers for NVRTC: cooperative_groups.h includes cuda/std/* (CCCL) cuda-cccl>=1.0.0 # Use cupy-cuda13x>=14.0.0 for cp.cuda.Stream.from_external(stream) diff --git a/samples/cuda_core/simpleMultiGpu/README.md b/samples/cuda_core/simpleMultiGpu/README.md index b32d8fcc35de..47bd761f3365 100644 --- a/samples/cuda_core/simpleMultiGpu/README.md +++ b/samples/cuda_core/simpleMultiGpu/README.md @@ -55,10 +55,9 @@ input buffers, so the kernels see fully-materialized data. ### Software -- CUDA Toolkit 13.0 or newer (matches `cuda-python` 13.x) +- CUDA Toolkit 13.0 or newer - Python 3.11 or newer -- `cuda-python` (>=13.0.0) -- `cuda-core` (>=1.0.0) +- `cuda-core[cu13]` (>=1.0.0) - `cupy-cuda13x` (>=14.0.0) ## Installation diff --git a/samples/cuda_core/simpleMultiGpu/requirements.txt b/samples/cuda_core/simpleMultiGpu/requirements.txt index b7f6c1cb39e4..560782cd6d48 100644 --- a/samples/cuda_core/simpleMultiGpu/requirements.txt +++ b/samples/cuda_core/simpleMultiGpu/requirements.txt @@ -1,6 +1,5 @@ # simpleMultiGpu Sample Requirements # Install with: pip install -r requirements.txt -cuda-python>=13.0.0 -cuda-core>=1.0.0 +cuda-core[cu13]>=1.0.0 cupy-cuda13x>=14.0.0 diff --git a/samples/cuda_core/simpleMultiGpu/simpleMultiGpu.py b/samples/cuda_core/simpleMultiGpu/simpleMultiGpu.py index 85e1859e2968..40d65c247988 100644 --- a/samples/cuda_core/simpleMultiGpu/simpleMultiGpu.py +++ b/samples/cuda_core/simpleMultiGpu/simpleMultiGpu.py @@ -25,7 +25,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # /// script -# dependencies = ["cuda-python>=13.0.0", "cuda-core>=1.0.0", "cupy-cuda13x>=14.0.0"] +# dependencies = ["cuda-core[cu13]>=1.0.0", "cupy-cuda13x>=14.0.0"] # /// """ diff --git a/samples/cuda_core/simpleP2P/README.md b/samples/cuda_core/simpleP2P/README.md index b37a9f929df9..db498c184b02 100644 --- a/samples/cuda_core/simpleP2P/README.md +++ b/samples/cuda_core/simpleP2P/README.md @@ -96,7 +96,7 @@ pip install -r requirements.txt Or manually: ```bash -pip install numpy>=2.3.2 cuda-core>=1.0.0 cuda-python>=13.0.0 +pip install "numpy>=2.3.2" "cuda-core[cu13]>=1.0.0" ``` ## How to run diff --git a/samples/cuda_core/simpleP2P/requirements.txt b/samples/cuda_core/simpleP2P/requirements.txt index 4626ed5dffa7..d99f39a71b0d 100644 --- a/samples/cuda_core/simpleP2P/requirements.txt +++ b/samples/cuda_core/simpleP2P/requirements.txt @@ -2,5 +2,4 @@ # Install with: pip install -r requirements.txt numpy>=2.3.2 -cuda-python>=13.0.0 -cuda-core>=1.0.0 +cuda-core[cu13]>=1.0.0 diff --git a/samples/cuda_core/simpleP2P/simpleP2P.py b/samples/cuda_core/simpleP2P/simpleP2P.py index b3f147272112..b7cd05cdf92c 100644 --- a/samples/cuda_core/simpleP2P/simpleP2P.py +++ b/samples/cuda_core/simpleP2P/simpleP2P.py @@ -25,7 +25,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # /// script -# dependencies = ["numpy>=2.3.2", "cuda-python>=13.0.0", "cuda-core>=1.0.0"] +# dependencies = ["numpy>=2.3.2", "cuda-core[cu13]>=1.0.0"] # /// import argparse diff --git a/samples/cuda_core/simplePrint/README.md b/samples/cuda_core/simplePrint/README.md index 79c1d5f3cffc..7750f3568226 100644 --- a/samples/cuda_core/simplePrint/README.md +++ b/samples/cuda_core/simplePrint/README.md @@ -67,8 +67,7 @@ CUDA Python (cuda.core), Numba CUDA, Kernel Compilation, Printf in Kernels, Mult - CUDA Toolkit 13.0 or newer - Python 3.11 or newer -- `cuda-python` package (13.0+) -- `cuda-core` package (>=1.0.0) +- `cuda-core[cu13]` package (>=1.0.0) - `numba-cuda` package (0.24.0+, for Pythonic kernel authoring) Download and install: diff --git a/samples/cuda_core/simplePrint/requirements.txt b/samples/cuda_core/simplePrint/requirements.txt index a39c5e7e518a..d0aa82a3a8d4 100644 --- a/samples/cuda_core/simplePrint/requirements.txt +++ b/samples/cuda_core/simplePrint/requirements.txt @@ -1,7 +1,6 @@ # Simple Printf Sample - Requirements -cuda-python>=13.0.0 -cuda-core>=1.0.0 +cuda-core[cu13]>=1.0.0 # Numba JIT uses nvJitLink from pip; keep in step with cuda-bindings (e.g. 13.2.x). nvidia-nvjitlink>=13.2.0 numba-cuda>=0.29.0 diff --git a/samples/cuda_core/simplePrint/simplePrint.py b/samples/cuda_core/simplePrint/simplePrint.py index 38f8e33ba4c5..6d2992b04f4a 100644 --- a/samples/cuda_core/simplePrint/simplePrint.py +++ b/samples/cuda_core/simplePrint/simplePrint.py @@ -25,7 +25,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # /// script -# dependencies = ["cuda-python>=13.0.0", "cuda-core>=1.0.0", "nvidia-nvjitlink>=13.2.0", "numba-cuda>=0.29.0"] +# dependencies = ["cuda-core[cu13]>=1.0.0", "nvidia-nvjitlink>=13.2.0", "numba-cuda>=0.29.0"] # /// """ diff --git a/samples/cuda_core/simpleZeroCopy/README.md b/samples/cuda_core/simpleZeroCopy/README.md index 7f7a4421cd6e..438360c6f1e6 100644 --- a/samples/cuda_core/simpleZeroCopy/README.md +++ b/samples/cuda_core/simpleZeroCopy/README.md @@ -17,7 +17,7 @@ This sample demonstrates zero-copy access using **`cuda.core`** to compile and l - `numpy` – CPU arrays and reference computation - `cuda-core` – `Device`, stream, `Program`, `LaunchConfig`, `launch` -- `cuda-python` (`cuda.bindings.runtime`) – `cudaHostAlloc` / `cudaHostGetDevicePointer` / `cudaFreeHost` for mapped host memory +- `cuda-bindings` (`cuda.bindings.runtime`) – `cudaHostAlloc` / `cudaHostGetDevicePointer` / `cudaFreeHost` for mapped host memory ## Key APIs @@ -51,9 +51,9 @@ This sample demonstrates zero-copy access using **`cuda.core`** to compile and l ## Requirements -1. **NVIDIA GPU** and a **driver** compatible with your installed `cuda-python` / `cuda-core` wheels. +1. **NVIDIA GPU** and a **driver** compatible with your installed `cuda-core` wheels. 2. **Python 3.11 or newer** -3. Install **`pip install -r requirements.txt`** (NumPy, `cuda-python`, `cuda-core`). A **system** CUDA Toolkit is not strictly required if the process can load the driver/runtime; use `LD_LIBRARY_PATH` in *How to run* if you hit missing-library errors. +3. Install **`pip install -r requirements.txt`** (NumPy, `cuda-core[cu13]`). A **system** CUDA Toolkit is not strictly required if the process can load the driver/runtime; use `LD_LIBRARY_PATH` in *How to run* if you hit missing-library errors. **Install packages:** ```bash @@ -62,7 +62,7 @@ pip install -r requirements.txt Or manually: ```bash -pip install numpy>=2.3.2 cuda-core>=1.0.0 cuda-python>=13.0.0 +pip install "numpy>=2.3.2" "cuda-core[cu13]>=1.0.0" ``` ## How to run diff --git a/samples/cuda_core/simpleZeroCopy/requirements.txt b/samples/cuda_core/simpleZeroCopy/requirements.txt index cfd9d89ea134..cefd493984ef 100644 --- a/samples/cuda_core/simpleZeroCopy/requirements.txt +++ b/samples/cuda_core/simpleZeroCopy/requirements.txt @@ -2,5 +2,4 @@ # Install with: pip install -r requirements.txt numpy>=2.3.2 -cuda-python>=13.0.0 -cuda-core>=1.0.0 +cuda-core[cu13]>=1.0.0 diff --git a/samples/cuda_core/simpleZeroCopy/simpleZeroCopy.py b/samples/cuda_core/simpleZeroCopy/simpleZeroCopy.py index a000ad0f8ca8..5cf627e6a2e0 100644 --- a/samples/cuda_core/simpleZeroCopy/simpleZeroCopy.py +++ b/samples/cuda_core/simpleZeroCopy/simpleZeroCopy.py @@ -25,7 +25,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # /// script -# dependencies = ["numpy>=2.3.2", "cuda-python>=13.0.0", "cuda-core>=1.0.0"] +# dependencies = ["numpy>=2.3.2", "cuda-core[cu13]>=1.0.0"] # /// import argparse diff --git a/samples/cuda_core/streamingCopyComputeOverlap/README.md b/samples/cuda_core/streamingCopyComputeOverlap/README.md index 5a02ebeaab97..f891cc6f3e85 100644 --- a/samples/cuda_core/streamingCopyComputeOverlap/README.md +++ b/samples/cuda_core/streamingCopyComputeOverlap/README.md @@ -44,7 +44,7 @@ Stream 2: [H2D][Compute][D2H] - CUDA Toolkit 13.0+ - Python 3.11+ -- `cuda-python`, `cuda-core`, `numpy` +- `cuda-core[cu13]`, `numpy` ## Installation diff --git a/samples/cuda_core/streamingCopyComputeOverlap/requirements.txt b/samples/cuda_core/streamingCopyComputeOverlap/requirements.txt index 5855f6dfb3e3..f8318846193f 100644 --- a/samples/cuda_core/streamingCopyComputeOverlap/requirements.txt +++ b/samples/cuda_core/streamingCopyComputeOverlap/requirements.txt @@ -1,6 +1,5 @@ # Streaming Copy Compute Overlap Sample Requirements # Requires Python 3.11 or newer -cuda-python>=13.0.0 -cuda-core>=1.0.0 +cuda-core[cu13]>=1.0.0 numpy>=2.3.2 diff --git a/samples/cuda_core/streamingCopyComputeOverlap/streamingCopyComputeOverlap.py b/samples/cuda_core/streamingCopyComputeOverlap/streamingCopyComputeOverlap.py index d28bfb28fdcb..c1b132e361b9 100644 --- a/samples/cuda_core/streamingCopyComputeOverlap/streamingCopyComputeOverlap.py +++ b/samples/cuda_core/streamingCopyComputeOverlap/streamingCopyComputeOverlap.py @@ -25,7 +25,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # /// script -# dependencies = ["cuda-python>=13.0.0", "cuda-core>=1.0.0", "numpy>=2.3.2"] +# dependencies = ["cuda-core[cu13]>=1.0.0", "numpy>=2.3.2"] # /// """ diff --git a/samples/cuda_core/stridedMemoryViewConstructors/README.md b/samples/cuda_core/stridedMemoryViewConstructors/README.md index eb1e4d9ba357..605c36786383 100644 --- a/samples/cuda_core/stridedMemoryViewConstructors/README.md +++ b/samples/cuda_core/stridedMemoryViewConstructors/README.md @@ -57,10 +57,9 @@ kernel. ### Software -- CUDA Toolkit 13.0 or newer (matches `cuda-python` 13.x) +- CUDA Toolkit 13.0 or newer - Python 3.11 or newer -- `cuda-python` (>=13.0.0) -- `cuda-core` (>=1.0.0) +- `cuda-core[cu13]` (>=1.0.0) - `cupy-cuda13x` (>=14.0.0) - `numpy` (>=2.1) — the DLPack round-trip requires NumPy 2.1+ diff --git a/samples/cuda_core/stridedMemoryViewConstructors/requirements.txt b/samples/cuda_core/stridedMemoryViewConstructors/requirements.txt index fd1415a58bad..44a37d484d0d 100644 --- a/samples/cuda_core/stridedMemoryViewConstructors/requirements.txt +++ b/samples/cuda_core/stridedMemoryViewConstructors/requirements.txt @@ -1,7 +1,6 @@ # stridedMemoryViewConstructors Sample Requirements # Install with: pip install -r requirements.txt -cuda-python>=13.0.0 -cuda-core>=1.0.0 +cuda-core[cu13]>=1.0.0 cupy-cuda13x>=14.0.0 numpy>=2.1 diff --git a/samples/cuda_core/stridedMemoryViewConstructors/stridedMemoryViewConstructors.py b/samples/cuda_core/stridedMemoryViewConstructors/stridedMemoryViewConstructors.py index ca04ab6d473d..c7954598cba5 100644 --- a/samples/cuda_core/stridedMemoryViewConstructors/stridedMemoryViewConstructors.py +++ b/samples/cuda_core/stridedMemoryViewConstructors/stridedMemoryViewConstructors.py @@ -25,7 +25,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # /// script -# dependencies = ["cuda-python>=13.0.0", "cuda-core>=1.0.0", "cupy-cuda13x>=14.0.0", "numpy>=2.1"] +# dependencies = ["cuda-core[cu13]>=1.0.0", "cupy-cuda13x>=14.0.0", "numpy>=2.1"] # /// """ diff --git a/samples/cuda_core/stridedMemoryViewCpu/README.md b/samples/cuda_core/stridedMemoryViewCpu/README.md index 2e13194ccf45..86a0b13417af 100644 --- a/samples/cuda_core/stridedMemoryViewCpu/README.md +++ b/samples/cuda_core/stridedMemoryViewCpu/README.md @@ -64,10 +64,9 @@ tour lives in ### Software -- CUDA Toolkit 13.0 or newer (matches `cuda-python` 13.x) +- CUDA Toolkit 13.0 or newer - Python 3.11 or newer -- `cuda-python` (>=13.0.0) -- `cuda-core` (>=1.0.0) +- `cuda-core[cu13]` (>=1.0.0) - `numpy` (>=2.3.2) - `cffi` - `setuptools` (needed by `cffi` for the JIT build step) diff --git a/samples/cuda_core/stridedMemoryViewCpu/requirements.txt b/samples/cuda_core/stridedMemoryViewCpu/requirements.txt index 045e44049615..5b50da692071 100644 --- a/samples/cuda_core/stridedMemoryViewCpu/requirements.txt +++ b/samples/cuda_core/stridedMemoryViewCpu/requirements.txt @@ -1,8 +1,7 @@ # stridedMemoryViewCpu Sample Requirements # Install with: pip install -r requirements.txt -cuda-python>=13.0.0 -cuda-core>=1.0.0 +cuda-core[cu13]>=1.0.0 numpy>=2.3.2 cffi setuptools diff --git a/samples/cuda_core/stridedMemoryViewCpu/stridedMemoryViewCpu.py b/samples/cuda_core/stridedMemoryViewCpu/stridedMemoryViewCpu.py index 525828bbd1fe..40421558c550 100644 --- a/samples/cuda_core/stridedMemoryViewCpu/stridedMemoryViewCpu.py +++ b/samples/cuda_core/stridedMemoryViewCpu/stridedMemoryViewCpu.py @@ -25,7 +25,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # /// script -# dependencies = ["cuda-python>=13.0.0", "cuda-core>=1.0.0", "numpy>=2.3.2", "cffi", "setuptools"] +# dependencies = ["cuda-core[cu13]>=1.0.0", "numpy>=2.3.2", "cffi", "setuptools"] # /// """ diff --git a/samples/cuda_core/stridedMemoryViewGpu/README.md b/samples/cuda_core/stridedMemoryViewGpu/README.md index 4fffbba8b38c..5ac0e7b4e127 100644 --- a/samples/cuda_core/stridedMemoryViewGpu/README.md +++ b/samples/cuda_core/stridedMemoryViewGpu/README.md @@ -59,10 +59,9 @@ The constructor tour lives in ### Software -- CUDA Toolkit 13.0 or newer (matches `cuda-python` 13.x) +- CUDA Toolkit 13.0 or newer - Python 3.11 or newer -- `cuda-python` (>=13.0.0) -- `cuda-core` (>=1.0.0) +- `cuda-core[cu13]` (>=1.0.0) - `cupy-cuda13x` (>=14.0.0) - `numpy` (>=2.3.2) diff --git a/samples/cuda_core/stridedMemoryViewGpu/requirements.txt b/samples/cuda_core/stridedMemoryViewGpu/requirements.txt index 6434dae5e305..009da68fd9a2 100644 --- a/samples/cuda_core/stridedMemoryViewGpu/requirements.txt +++ b/samples/cuda_core/stridedMemoryViewGpu/requirements.txt @@ -1,7 +1,6 @@ # stridedMemoryViewGpu Sample Requirements # Install with: pip install -r requirements.txt -cuda-python>=13.0.0 -cuda-core>=1.0.0 +cuda-core[cu13]>=1.0.0 cupy-cuda13x>=14.0.0 numpy>=2.3.2 diff --git a/samples/cuda_core/stridedMemoryViewGpu/stridedMemoryViewGpu.py b/samples/cuda_core/stridedMemoryViewGpu/stridedMemoryViewGpu.py index 5968a45dca76..9867f42252ba 100644 --- a/samples/cuda_core/stridedMemoryViewGpu/stridedMemoryViewGpu.py +++ b/samples/cuda_core/stridedMemoryViewGpu/stridedMemoryViewGpu.py @@ -25,7 +25,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # /// script -# dependencies = ["cuda-python>=13.0.0", "cuda-core>=1.0.0", "cupy-cuda13x>=14.0.0", "numpy>=2.3.2"] +# dependencies = ["cuda-core[cu13]>=1.0.0", "cupy-cuda13x>=14.0.0", "numpy>=2.3.2"] # /// """ diff --git a/samples/cuda_core/systemInfo/README.md b/samples/cuda_core/systemInfo/README.md index 31a684d38d34..163a9394b43d 100644 --- a/samples/cuda_core/systemInfo/README.md +++ b/samples/cuda_core/systemInfo/README.md @@ -56,14 +56,13 @@ Import stable symbols from the top-level `cuda.core` package (not `cuda.core.exp ### Hardware - One or more NVIDIA GPUs -- Driver compatible with `cuda-python` 13.x +- Driver compatible with CUDA 13 ### Software -- CUDA Toolkit 13.0 or newer (matches `cuda-python` 13.x) +- CUDA Toolkit 13.0 or newer - Python 3.12 or newer -- `cuda-python` (>=13.0.0) -- `cuda-core` (>=1.0.0) +- `cuda-core[cu13]` (>=1.0.0) ## Installation @@ -76,8 +75,7 @@ pip install -r requirements.txt The `requirements.txt` installs: -- `cuda-python` (>=13.0.0) -- `cuda-core` (>=1.0.0) +- `cuda-core[cu13]` (>=1.0.0) ## How to Run diff --git a/samples/cuda_core/systemInfo/requirements.txt b/samples/cuda_core/systemInfo/requirements.txt index 13628c0b3089..892a6b30ef42 100644 --- a/samples/cuda_core/systemInfo/requirements.txt +++ b/samples/cuda_core/systemInfo/requirements.txt @@ -1,4 +1,3 @@ # System Information Sample Requirements -cuda-python>=13.0.0 -cuda-core>=1.0.0 +cuda-core[cu13]>=1.0.0 diff --git a/samples/cuda_core/systemInfo/systemInfo.py b/samples/cuda_core/systemInfo/systemInfo.py index 939084ae17be..dc55c5fddfe2 100644 --- a/samples/cuda_core/systemInfo/systemInfo.py +++ b/samples/cuda_core/systemInfo/systemInfo.py @@ -25,7 +25,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # /// script -# dependencies = ["cuda-python>=13.0.0", "cuda-core>=1.0.0"] +# dependencies = ["cuda-core[cu13]>=1.0.0"] # /// """ diff --git a/samples/cuda_core/textureSample/README.md b/samples/cuda_core/textureSample/README.md index 6e1f3e26fc51..56662eb96d57 100644 --- a/samples/cuda_core/textureSample/README.md +++ b/samples/cuda_core/textureSample/README.md @@ -30,8 +30,7 @@ blend of texels ``(0, 0)`` and ``(1, 0)``. - CUDA Toolkit 13.0 or newer - Python 3.11 or newer -- `cuda-python` (>=13.0.0) -- `cuda-core` (>=1.0.0) +- `cuda-core[cu13]` (>=1.1.0) - `numpy` (>=1.24) ## Installation diff --git a/samples/cuda_core/textureSample/requirements.txt b/samples/cuda_core/textureSample/requirements.txt index cd1c9fe94bc7..68db7b88da49 100644 --- a/samples/cuda_core/textureSample/requirements.txt +++ b/samples/cuda_core/textureSample/requirements.txt @@ -1,6 +1,5 @@ # textureSample Sample Requirements # Install with: pip install -r requirements.txt -cuda-python>=13.0.0 -cuda-core>=1.0.0 +cuda-core[cu13]>=1.1.0 numpy>=1.24 diff --git a/samples/cuda_core/textureSample/textureSample.py b/samples/cuda_core/textureSample/textureSample.py index 212791138845..86ea0f0397ae 100644 --- a/samples/cuda_core/textureSample/textureSample.py +++ b/samples/cuda_core/textureSample/textureSample.py @@ -16,7 +16,7 @@ # ################################################################################ # /// script -# dependencies = ["cuda-python>=13.0.0", "cuda-core>=1.0.0", "numpy>=1.24"] +# dependencies = ["cuda-core[cu13]>=1.1.0", "numpy>=1.24"] # /// import numpy as np diff --git a/samples/cuda_core/threadBlockCluster/README.md b/samples/cuda_core/threadBlockCluster/README.md index c75d9fd9123c..1ac48c731e2c 100644 --- a/samples/cuda_core/threadBlockCluster/README.md +++ b/samples/cuda_core/threadBlockCluster/README.md @@ -71,8 +71,7 @@ The sample **waives itself** when: - CUDA Toolkit 13.0 or newer with `cooperative_groups.h` in its `include/` directory. Set `CUDA_PATH` or `CUDA_HOME`. - Python 3.11 or newer -- `cuda-python` (>=13.0.0) -- `cuda-core` (>=1.0.0) +- `cuda-core[cu13]` (>=1.0.0) - `numpy` (>=2.2.5) ## Installation diff --git a/samples/cuda_core/threadBlockCluster/requirements.txt b/samples/cuda_core/threadBlockCluster/requirements.txt index d705e21cdff2..48fcafa99fe8 100644 --- a/samples/cuda_core/threadBlockCluster/requirements.txt +++ b/samples/cuda_core/threadBlockCluster/requirements.txt @@ -1,6 +1,5 @@ # threadBlockCluster Sample Requirements # Install with: pip install -r requirements.txt -cuda-python>=13.0.0 -cuda-core>=1.0.0 +cuda-core[cu13]>=1.0.0 numpy>=2.3.2 diff --git a/samples/cuda_core/threadBlockCluster/threadBlockCluster.py b/samples/cuda_core/threadBlockCluster/threadBlockCluster.py index c96223237d98..b23bd40104c0 100644 --- a/samples/cuda_core/threadBlockCluster/threadBlockCluster.py +++ b/samples/cuda_core/threadBlockCluster/threadBlockCluster.py @@ -25,7 +25,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # /// script -# dependencies = ["cuda-python>=13.0.0", "cuda-core>=1.0.0", "numpy>=2.3.2"] +# dependencies = ["cuda-core[cu13]>=1.0.0", "numpy>=2.3.2"] # /// """ diff --git a/samples/cuda_core/tmaTensorMap/README.md b/samples/cuda_core/tmaTensorMap/README.md index f975ee9e38f5..efb13478ee1f 100644 --- a/samples/cuda_core/tmaTensorMap/README.md +++ b/samples/cuda_core/tmaTensorMap/README.md @@ -72,8 +72,7 @@ The sample: - CUDA Toolkit 13.0 or newer with libcudacxx (cccl) headers - Python 3.11 or newer -- `cuda-python` (>=13.0.0) -- `cuda-core` (>=1.0.0) +- `cuda-core[cu13]` (>=1.0.0) - `cupy-cuda13x` (>=14.0.0) ## Installation @@ -87,8 +86,7 @@ pip install -r requirements.txt The `requirements.txt` installs: -- `cuda-python` (>=13.0.0) -- `cuda-core` (>=1.0.0) +- `cuda-core[cu13]` (>=1.0.0) - `cupy-cuda13x` (>=14.0.0) ## How to Run diff --git a/samples/cuda_core/tmaTensorMap/requirements.txt b/samples/cuda_core/tmaTensorMap/requirements.txt index 4c0fd3ddadce..788feb1add52 100644 --- a/samples/cuda_core/tmaTensorMap/requirements.txt +++ b/samples/cuda_core/tmaTensorMap/requirements.txt @@ -1,5 +1,4 @@ -cuda-python>=13.0.0 -cuda-core>=1.0.0 +cuda-core[cu13]>=1.0.0 cupy-cuda13x>=14.0.0 numpy>=1.24.0 -nvidia-cuda-cccl-cu12 +nvidia-cuda-cccl>=13.0.0 diff --git a/samples/cuda_core/tmaTensorMap/tmaTensorMap.py b/samples/cuda_core/tmaTensorMap/tmaTensorMap.py index 7f477e76ffca..332511cc1f14 100644 --- a/samples/cuda_core/tmaTensorMap/tmaTensorMap.py +++ b/samples/cuda_core/tmaTensorMap/tmaTensorMap.py @@ -25,7 +25,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # /// script -# dependencies = ["cuda-python>=13.0.0", "cuda-core>=1.0.0", "cupy-cuda13x>=14.0.0", "numpy>=1.24.0", "nvidia-cuda-cccl-cu12"] +# dependencies = ["cuda-core[cu13]>=1.0.0", "cupy-cuda13x>=14.0.0", "numpy>=1.24.0", "nvidia-cuda-cccl>=13.0.0"] # /// """ diff --git a/samples/cuda_core/vectorAdd/README.md b/samples/cuda_core/vectorAdd/README.md index 0ebba45abff9..9a6a285876e5 100644 --- a/samples/cuda_core/vectorAdd/README.md +++ b/samples/cuda_core/vectorAdd/README.md @@ -73,10 +73,9 @@ Import stable symbols from the top-level package (not `cuda.core.experimental`). ### Software -- CUDA Toolkit 13.0 or newer (matches `cuda-python` 13.x) +- CUDA Toolkit 13.0 or newer - Python 3.11 or newer -- `cuda-python` (>=13.0.0) -- `cuda-core` (>=1.0.0) +- `cuda-core[cu13]` (>=1.0.0) - `cupy-cuda13x` (>=14.0.0) ## Installation @@ -90,8 +89,7 @@ pip install -r requirements.txt The requirements.txt installs: -- `cuda-python` (>=13.0.0) -- `cuda-core` (>=1.0.0) +- `cuda-core[cu13]` (>=1.0.0) - `cupy-cuda13x` (>=14.0.0) ## How to Run diff --git a/samples/cuda_core/vectorAdd/requirements.txt b/samples/cuda_core/vectorAdd/requirements.txt index 821bb43d8a0d..4d9c270faf80 100644 --- a/samples/cuda_core/vectorAdd/requirements.txt +++ b/samples/cuda_core/vectorAdd/requirements.txt @@ -1,6 +1,5 @@ # Vector Addition Sample Requirements -cuda-python>=13.0.0 -cuda-core>=1.0.0 +cuda-core[cu13]>=1.0.0 cupy-cuda13x>=14.0.0 nvidia-curand diff --git a/samples/cuda_core/vectorAdd/vectorAdd.py b/samples/cuda_core/vectorAdd/vectorAdd.py index 1fca7e2a133f..89d9e45404fe 100755 --- a/samples/cuda_core/vectorAdd/vectorAdd.py +++ b/samples/cuda_core/vectorAdd/vectorAdd.py @@ -25,7 +25,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # /// script -# dependencies = ["cuda-python>=13.0.0", "cuda-core>=1.0.0", "cupy-cuda13x>=14.0.0", "nvidia-curand"] +# dependencies = ["cuda-core[cu13]>=1.0.0", "cupy-cuda13x>=14.0.0", "nvidia-curand"] # /// """