Skip to content

[DOC]: 'Getting started' example does not run as documented #796

@richardhboyd

Description

@richardhboyd

Is this a duplicate?

Is this for new documentation, or an update to existing docs?

Update

Describe the incorrect/future/missing documentation

The code included in the getting started section does not run because it is missing an import for cupy and initializing cupy's random number generator. To get the example to work, a user would have to navigate the Github repo to the /examples/ folder and find the addVector example. Making these two small changes would make the getting started documentation stand-alone.

(I'm submitting this Issue so that I can submit the PR to fix it as well)

If this is a correction, please provide a link to the incorrect documentation. If this is a new documentation request, please link to where you have looked.

https://nvidia.github.io/cuda-python/cuda-core/latest/getting-started.html#example-compiling-and-launching-a-cuda-kernel

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1Medium priority - Should docuda.coreEverything related to the cuda.core moduledocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions