Skip to main content

RunOnGPU

RunOnGPU is a CLI tool that helps you run GitHub projects on a GPU with minimal setup.

It is useful if you want to test CUDA, PyTorch, or other GPU code but do not have a local NVIDIA GPU.

Requirements

  • Windows
  • Python 3.10
  • Git
  • Google Chrome
  • Google account for Colab

Install

Example video: https://www.loom.com/share/79d5dfd3cba4401fb2fd5967a8438391

  1. Install anaconda with Python >= 3.10 for smooth performance
  2. Publish your code in a public GitHub repo. You will use the GitHub repo URL
  3. Create conda environment. You can use any name you like but for following example, we used test_env.
conda create --name test_env "python>=3.10"
conda activate test_env
  1. Run following commands in your conda enviroment
pip install runongpu

Check setup:

runongpu doctor
  1. Make sure you do not touch chrome or move around your cursor as the program runs the code.
  2. Be prepared to sign in to your google account once. Your profile will be saved for future sessions.

Quick Start

Go to the project you want to run and initialize RunOnGPU:

runongpu init

Enter your GitHub repo URL when asked.

This creates a runongpu.txt file. Edit this file to tell RunOnGPU how to set up, build, test, and run your project.

Then run:

runongpu run

RunOnGPU will open Colab, copy the starter notebook, clone your repo, set the runtime to a T4 GPU, and run your commands. If for some reason, it doesn't work on the first try, press enter in your command line interface to restart the program.

runongpu.txt

You need this to run neccesary commands. You must edit this file to ensure your program runs smoothly.

runongpu.txt controls what happens inside Colab.

It has four sections:

[setup]
# install dependencies here

[build]
# compile or build the project here

[test]
# run tests here

[run]
# run the final program here

Add one command per line.

Example: CUDA

If your repo has this structure:

my-cuda-project/
├── main.cu
└── runongpu.txt

Use:

[setup]

[build]
nvcc main.cu -o vector_add

[test]

[run]
./vector_add

Example: CUDA in a Subfolder

If your repo has this structure:

runongpu-examples/
├── cuda/
│   └── vector-add/
│       └── main.cu
└── runongpu.txt

Use:

[setup]

[build]
cd cuda/vector-add && nvcc main.cu -o vector_add

[test]

[run]
cd cuda/vector-add && ./vector_add

Example: Python

[setup]
pip install -r requirements.txt

[build]

[test]
pytest

[run]
python main.py

Example: CMake

[setup]

[build]
cmake -S . -B build
cmake --build build

[test]
ctest --test-dir build --output-on-failure

[run]
./build/my_program

Notes

On the first run, you may need to sign into Google Colab. RunOnGPU saves the copied notebook URL and reuses it on future runs.

Do not interact with the Colab window while RunOnGPU is setting it up.

Examples of RunOnGPU use: https://github.com/MashrafeeAryan/runongpu-examples

Run Tests

python -m pytest

Metadata

Release files for runongpu 1.0.2

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

Source distribution (sdist)

Source distribution for runongpu 1.0.2
File Size Uploaded Provenance Actions
runongpu-1.0.2.tar.gz 11.5 kB With provenance Details for runongpu-1.0.2.tar.gz

Built distribution (wheel)

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

Total release size: 22.2 kB

Release files / runongpu-1.0.2.tar.gz

Download URL runongpu-1.0.2.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ee4c6221fdbd5013f7d56c2fe8252390e9ca2766a0543dff751508b12e5f2129
BLAKE2b-256 checksum
How to use checksums
7a5721ecca4bca7935ceb86c9b48bee0b17fa2a0ea7276e89acdc31342f44180
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 1, 2026.

Transparency log

Release files / runongpu-1.0.2-py3-none-any.whl

Download URL runongpu-1.0.2-py3-none-any.whl
Size 10.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d3550854c6ad8c5e40ca750178fc1557850bd7c8e17ad994d4534ac6d20948a0
BLAKE2b-256 checksum
How to use checksums
4a2344fe61c59b9381c4f91316c1d080061dbad04dd3d40b3dd1b94b8732eaab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 1, 2026.

Transparency log

Security for runongpu 1.0.2

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for runongpu-1.0.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 1, 2026.

Transparency log

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