Skip to content

Jupyter Notebook CUDA examples fail to run on T4 Google Collab instance #12

Description

@harvv

As of January 2026, the (free) Google Collab Tesla T4 runtime has a slight mismatch between the max supported CUDA version in the driver and what nvcc outputs by default.

Thus, the notebook as-is as of today, runs:
%%shell
nvcc add.cu -o add_cuda
./add_cuda

...this will (silently) fail with the kernel failing to launch. (using CUDA error functions will reveal a PTX mismatch)

change the cell to:
%%shell
nvcc -arch=sm_75 add.cu -o add_cuda
./add_cuda

...and it will work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions