Skip to main content

NVCC Plugin for Jupyter notebook

V2 is available

V2 brings support of multiple source and header files.

Usage
  • Install and load extension
!pip install git+https://github.com/andreinechaev/nvcc4jupyter.git
%load_ext nvcc_plugin
  • Mark a cell to be treated as cuda cell

%%cuda --name example.cu --compile false

NOTE: The cell must contain either code or comments to be run successfully. It accepts 2 arguments. -n | --name - which is the name of either CUDA source or Header The name parameter must have extension .cu or .h Second argument -c | --compile; default value is false. The argument is a flag to specify if the cell will be compiled and run right away or not. It might be usefull if you're playing in the main function

  • To compile and run all CUDA files you need to run
%%cuda_run
# This line just to bypass an exeption and can contain any text
  • To profile your CUDA kernels using NVIDIA Nsight Compute CLI profiler you need to run
%%cu --profile
  • You can add options to the profiler. Keep in mind that any argument after "--profiler-args" will be considered as a profiler argument. For example, to select which sections to collect metrics for you need to run
%%cu --profile --profiler-args --section SpeedOfLight --section MemoryWorkloadAnalysis --section Occupancy

Metadata

Release files for nvcc4jupyter 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nvcc4jupyter 1.0.0
File Size Uploaded Provenance Actions
nvcc4jupyter-1.0.0.tar.gz 10.8 kB Without provenance Details for nvcc4jupyter-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nvcc4jupyter 1.0.0
File Interpreter ABI Platform Actions
nvcc4jupyter-1.0.0-py3-none-any.whl Python 3 none any Details for nvcc4jupyter-1.0.0-py3-none-any.whl

Total release size: 16.6 kB

Release files / nvcc4jupyter-1.0.0.tar.gz

Download URL nvcc4jupyter-1.0.0.tar.gz
Size 10.8 kB
Tags Source
SHA-256 checksum
How to use checksums
70566a0756db6eda102af7b1486e58e51e3ec140b643110f98ae4c037d77c3f0
BLAKE2b-256 checksum
How to use checksums
7e47212e0d226a3782c741631eb45468058d01d182d2fd70123a3dffb197ec21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.7

Release files / nvcc4jupyter-1.0.0-py3-none-any.whl

Download URL nvcc4jupyter-1.0.0-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
477d0327f9d0b084d89af842fc02761f6b0df37bd93c0bd98b53ff588a13bfe1
BLAKE2b-256 checksum
How to use checksums
85df997f354a28549cfba09a0b901fbc12c6f4f488716ef2e51e7ef5164fb8c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.7

Security for nvcc4jupyter 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page