{"id":30188582,"url":"https://github.com/dgcnz/nvtx-vscode","last_synced_at":"2026-04-13T18:01:46.271Z","repository":{"id":308054938,"uuid":"987210390","full_name":"dgcnz/nvtx-vscode","owner":"dgcnz","description":"  Create NVIDIA NVTX ranges directly in VS Code, then profile with Nsight Systems without modifying source code.","archived":false,"fork":false,"pushed_at":"2025-08-03T20:27:32.000Z","size":757,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-12T17:11:04.940Z","etag":null,"topics":["cuda","nvtx","pytorch","vscode"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dgcnz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-20T18:31:41.000Z","updated_at":"2025-08-03T20:27:36.000Z","dependencies_parsed_at":"2025-08-03T22:27:44.448Z","dependency_job_id":null,"html_url":"https://github.com/dgcnz/nvtx-vscode","commit_stats":null,"previous_names":["dgcnz/nvtx-vscode"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dgcnz/nvtx-vscode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgcnz%2Fnvtx-vscode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgcnz%2Fnvtx-vscode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgcnz%2Fnvtx-vscode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgcnz%2Fnvtx-vscode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dgcnz","download_url":"https://codeload.github.com/dgcnz/nvtx-vscode/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgcnz%2Fnvtx-vscode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31764317,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cuda","nvtx","pytorch","vscode"],"created_at":"2025-08-12T17:07:42.536Z","updated_at":"2026-04-13T18:01:46.247Z","avatar_url":"https://github.com/dgcnz.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NVTX Range Manager\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"media/logo.png\" width=\"200\" alt=\"NVTX Range Manager Logo\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/release-v0.0.1-green\" alt=\"Release\"/\u003e\n  \u003cimg src=\"https://img.shields.io/badge/license-MIT-blue\" alt=\"License\"/\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003eVisual GPU profiling for Python developers\u003c/strong\u003e\u003cbr\u003e\n  Create NVIDIA NVTX ranges directly in VS Code, then profile with Nsight Systems without modifying source code.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"media/demo.gif\" alt=\"NVTX Range Manager Demo\" width=\"800\"\u003e\n\u003c/p\u003e\n\n\n## Features\n\n- **Visual Range Creation**: Select code and create NVTX ranges directly in VS Code\n- **Persistent Workspace Storage**: Ranges are saved per project and can be toggled on/off\n- **Clear Visual Indicators**: See exactly where your profiling ranges start and end through colored annotations\n- **Non-Intrusive Workflow**: Profile without changing your source code\n- **Standalone CLI Tool**: Run profiling from command line with `njkt`\n- **PyTorch Integration**: Works seamlessly with CUDA NVTX and Nsight Systems\n\n## Quick Start\n\n1. **Install the VS Code extension** from the marketplace\n2. **Install the CLI tool** for code transformation and execution on your script's workspace:\n   ```bash\n   # Using uv (recommended)\n   uv add git+https://github.com/dgcnz/nvtx-vscode.git#subdirectory=py\n   \n   # Or using pip\n   pip install git+https://github.com/dgcnz/nvtx-vscode.git#subdirectory=py\n   ```\n3. **Create profiling ranges**: Select Python code in VS Code and run \"NVTX: Create Range from Selection\"\n4. **Execute with profiling**: Run, profile and dynamically inject nvtx ranges (preferrably with `uv run`):\n   ```bash\n   nsys profile uv run njkt your_script.py\n   ```\n\n## Requirements\n\n- **Python 3.9+** with PyTorch (CUDA support required for GPU profiling)\n- **NVIDIA Nsight Systems** for profiling execution\n- **VS Code 1.87.0+** for the extension\n- **`njkt` CLI tool** (installed separately via pip/uv)\n\n## Structure\n\nThe project consists of two main components:\n\n- **VS Code Extension** (`src/`): Provides the visual interface for creating and managing NVTX ranges\n- **Python CLI Tool** (`py/`): Handles code transformation and execution with NVTX profiling\n  - Install: `uv add git+https://github.com/dgcnz/nvtx-vscode.git#subdirectory=py`\n  - Usage: `njkt script.py` (automatically reads `.vscode/nvtx_ranges.json`)\n\n## CLI Usage\n\nThe `njkt` command-line tool transforms and executes your Python code with NVTX profiling:\n\n```bash\n# Basic execution with default ranges\nnjkt your_script.py\n\n# Pass arguments to your script\nnjkt train.py --batch-size 32 --lr 0.001\n\n# Use custom ranges file\nnjkt --ranges custom_ranges.json script.py\n\n# Debug transformation (output transformed code)\nnjkt --transform-only --output transformed.py script.py\n\n# Full profiling\nnsys profile uv run njkt script.py\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgcnz%2Fnvtx-vscode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdgcnz%2Fnvtx-vscode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgcnz%2Fnvtx-vscode/lists"}