{"id":17268698,"url":"https://github.com/mnicely/nvml_examples","last_synced_at":"2025-04-14T08:05:43.981Z","repository":{"id":39580288,"uuid":"185882830","full_name":"mnicely/nvml_examples","owner":"mnicely","description":"Examples showing how to utilize the NVML library for GPU monitoring","archived":false,"fork":false,"pushed_at":"2022-05-31T20:18:02.000Z","size":262,"stargazers_count":28,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-14T08:05:32.157Z","etag":null,"topics":["cublas","cuda","nvidia","nvml"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mnicely.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}},"created_at":"2019-05-09T22:57:45.000Z","updated_at":"2025-04-08T07:33:50.000Z","dependencies_parsed_at":"2022-09-04T07:50:34.660Z","dependency_job_id":null,"html_url":"https://github.com/mnicely/nvml_examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnicely%2Fnvml_examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnicely%2Fnvml_examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnicely%2Fnvml_examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnicely%2Fnvml_examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mnicely","download_url":"https://codeload.github.com/mnicely/nvml_examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248843819,"owners_count":21170488,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["cublas","cuda","nvidia","nvml"],"created_at":"2024-10-15T08:13:57.855Z","updated_at":"2025-04-14T08:05:43.935Z","avatar_url":"https://github.com/mnicely.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nvml_example\nExample showing how to utilize NVML library for GPU monitoring with high sampling rate.\n\nThis example utilizing the NVML Library and C++11 mutlithreading to provide GPU monitoring with a high sampling rate. Normally, one would pipe nvidia-smi to a file, but this can cause excessive I/O usage.\n\nAlso provided is a Matlab script used to plot the data.\n\n### Prerequisites\nExample requires Tesla card because some calls are not supported on Geforce family.\n\n### Built With\nThis example utilizes the following toolsets:\n* cuBLAS\n* Thrust\n* C++11 multithreading\n* NVIDIA Management Library (NVML)\n\n### Deployment\nInclude header class\n\n```#include nvmlClass.h```\n\nCreate object of nvmlClass\n\n```nvmlClass nvml( dev, filename );```\n\nCreate thread to run in parallel, gathering data\n\n```std::thread threadStart( \u0026nvmlClass::getStats, \u0026nvml );```\n\nCreate thread to kill getStats function\n\n```std::thread threadKill( \u0026nvmlClass::killThread, \u0026nvml );```\n\nJoin all threads\n\n```threadStart.join( );```\n\n```threadKill.join( );```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmnicely%2Fnvml_examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmnicely%2Fnvml_examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmnicely%2Fnvml_examples/lists"}