{"id":31886629,"url":"https://github.com/parca-dev/parcagpu","last_synced_at":"2026-03-06T01:06:19.475Z","repository":{"id":318659273,"uuid":"1068086486","full_name":"parca-dev/parcagpu","owner":"parca-dev","description":"CUPTI based GPU profiling library exposing usdt hooks","archived":false,"fork":false,"pushed_at":"2026-02-27T00:51:50.000Z","size":226,"stargazers_count":25,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-27T07:48:26.334Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/parca-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-01T20:46:26.000Z","updated_at":"2026-02-20T18:32:57.000Z","dependencies_parsed_at":"2025-10-08T14:27:44.961Z","dependency_job_id":"a67b0022-2282-49c4-85c3-69c56ff7da4b","html_url":"https://github.com/parca-dev/parcagpu","commit_stats":null,"previous_names":["parca-dev/parcagpu"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/parca-dev/parcagpu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parca-dev%2Fparcagpu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parca-dev%2Fparcagpu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parca-dev%2Fparcagpu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parca-dev%2Fparcagpu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parca-dev","download_url":"https://codeload.github.com/parca-dev/parcagpu/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parca-dev%2Fparcagpu/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30156920,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T22:39:40.138Z","status":"ssl_error","status_checked_at":"2026-03-05T22:39:24.771Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2025-10-13T05:20:12.483Z","updated_at":"2026-03-06T01:06:19.448Z","avatar_url":"https://github.com/parca-dev.png","language":"C","readme":"# parcagpu - CUPTI Profiler with USDT Probes\n\nCUDA profiling library that exposes kernel and graph execution events via USDT/DTRACE probes for eBPF/bpftrace monitoring.\n\n## Building\n\n```bash\nmake        # Build everything\nmake test   # Build and run tests\nmake clean  # Clean all build artifacts\n```\n\n### Components Built\n\n1. **libparcagpucupti.so** (CMake + real CUPTI)\n   - Production library for CUDA injection\n   - Located in `cupti/build/`\n   - Links against real NVIDIA CUPTI\n\n2. **Test Infrastructure** (Zig)\n   - Mock CUPTI library for testing\n   - Test program that simulates CUDA events\n   - Located in `zig-out/`\n\n## Usage\n\n### As CUDA Injection Library\n\n```bash\nexport CUDA_INJECTION64_PATH=/path/to/libparcagpucupti.so\n# Run your CUDA application\n./my_cuda_app\n```\n\n### Monitoring with bpftrace\n\n```bash\n# Terminal 1: Monitor probes\nsudo bpftrace parcagpu.bt\n\n# Terminal 2: Run CUDA application\n./my_cuda_app\n```\n\n## Testing\n\n```bash\n# Run test suite with bpftrace monitoring\nmake test\n\n# Run test continuously (for extended monitoring)\nLD_LIBRARY_PATH=zig-out/lib zig-out/bin/test_cupti_prof cupti/build/libparcagpucupti.so --forever\n```\n\nSee [README_TEST.md](README_TEST.md) for detailed testing documentation.\n\n## USDT Probes\n\nThe library exposes two USDT probes:\n\n### parcagpu:kernel_executed\n- **arg0**: start timestamp (ns)\n- **arg1**: end timestamp (ns)\n- **arg2**: correlationId | (deviceId \u003c\u003c 32)\n- **arg3**: streamId\n- **arg4**: kernel name (string pointer)\n\n### parcagpu:graph_executed\n- **arg0**: start timestamp (ns)\n- **arg1**: end timestamp (ns)\n- **arg2**: correlationId | (deviceId \u003c\u003c 32)\n- **arg3**: streamId\n- **arg4**: graphId\n\n## Requirements\n\n- CUDA Toolkit (CUPTI libraries)\n- Zig (for building test infrastructure)\n- CMake (for building production library)\n- bpftrace (for probe monitoring)\n\n## Directory Structure\n\n```\n.\n├── Makefile              # Top-level build orchestration\n├── build.zig             # Zig build for test infrastructure\n├── cupti/\n│   ├── CMakeLists.txt    # CMake build for production library\n│   ├── cupti-prof.c      # Main profiler implementation\n│   └── build/            # CMake build output\n├── test/\n│   ├── mock_cupti.c      # Mock CUPTI for testing\n│   └── test_cupti_prof.c # Test program\n├── parcagpu.bt           # bpftrace monitoring script\n└── test.sh               # Test runner\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparca-dev%2Fparcagpu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparca-dev%2Fparcagpu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparca-dev%2Fparcagpu/lists"}