{"id":17632664,"url":"https://github.com/tdavidcl/cu_intercept","last_synced_at":"2026-05-03T02:45:29.131Z","repository":{"id":257627995,"uuid":"857768103","full_name":"tdavidcl/cu_intercept","owner":"tdavidcl","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-01T08:13:18.000Z","size":53,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T03:31:44.479Z","etag":null,"topics":["cuda","cuda-memory","cuda-programming","hook","massif","memory-tracking","preload"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tdavidcl.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}},"created_at":"2024-09-15T15:05:52.000Z","updated_at":"2024-09-28T09:04:57.000Z","dependencies_parsed_at":"2024-09-17T20:54:58.447Z","dependency_job_id":"39372ff4-e27a-4dcc-8ad9-a41518d81505","html_url":"https://github.com/tdavidcl/cu_intercept","commit_stats":null,"previous_names":["tdavidcl/cu_intercept"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tdavidcl/cu_intercept","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tdavidcl%2Fcu_intercept","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tdavidcl%2Fcu_intercept/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tdavidcl%2Fcu_intercept/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tdavidcl%2Fcu_intercept/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tdavidcl","download_url":"https://codeload.github.com/tdavidcl/cu_intercept/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tdavidcl%2Fcu_intercept/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32556771,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T00:31:16.350Z","status":"online","status_checked_at":"2026-05-03T02:00:09.297Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","cuda-memory","cuda-programming","hook","massif","memory-tracking","preload"],"created_at":"2024-10-23T01:45:01.009Z","updated_at":"2026-05-03T02:45:29.117Z","avatar_url":"https://github.com/tdavidcl.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cu_intercept\n\nA small preload utility to intercept CUDA memory managment.\n\n---\n\n## Compile \n\n```\ncmake -B build .\ncd build\nmake\n```\n\n## Usage\n\n```\nLD_PRELOAD=\u003cpath to libcuintercept.so\u003e \u003cyour cuda programm\u003e\n```\n\n## Outputs\n\nIn the path where you are running the programm with the LD_PRELOAD you wil find files named `output.\u003cpid\u003e.txt` where `\u003cpid\u003e` is replace by the pid of your programm.\nThey contain the amount of memory allocated by the programm at every time of allocations.\n\nyou can read them with python like so:\n```py\nimport numpy as np\nimport matplotlib.pyplot as plt\n\nout = np.loadtxt(\"output.324547.txt\")\nplt.plot(out[:,0],out[:,1])\n\nplt.xlabel(\"time [s]\")\nplt.ylabel(\"memory [byte]\")\nplt.show()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftdavidcl%2Fcu_intercept","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftdavidcl%2Fcu_intercept","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftdavidcl%2Fcu_intercept/lists"}