{"id":21130365,"url":"https://github.com/akileshjayakumar/gpu-detection-scripts","last_synced_at":"2025-12-29T08:13:02.982Z","repository":{"id":249747900,"uuid":"832430624","full_name":"akileshjayakumar/GPU-Detection-Scripts","owner":"akileshjayakumar","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-09T11:18:26.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-10T17:11:21.570Z","etag":null,"topics":["gpu","nvidia","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/akileshjayakumar.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-07-23T02:39:18.000Z","updated_at":"2024-10-19T11:22:17.000Z","dependencies_parsed_at":"2024-07-23T05:24:27.688Z","dependency_job_id":null,"html_url":"https://github.com/akileshjayakumar/GPU-Detection-Scripts","commit_stats":null,"previous_names":["akileshjayakumar/gpu-detection-scripts"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akileshjayakumar%2FGPU-Detection-Scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akileshjayakumar%2FGPU-Detection-Scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akileshjayakumar%2FGPU-Detection-Scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akileshjayakumar%2FGPU-Detection-Scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akileshjayakumar","download_url":"https://codeload.github.com/akileshjayakumar/GPU-Detection-Scripts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243573495,"owners_count":20312883,"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":["gpu","nvidia","python"],"created_at":"2024-11-20T05:32:39.395Z","updated_at":"2025-12-29T08:13:02.974Z","avatar_url":"https://github.com/akileshjayakumar.png","language":"Python","readme":"# GPU Detection Scripts\n\nThis repository contains Python scripts to check GPU availability and status using PyTorch and TensorFlow.\n\n## Files\n\n- **gpu_test.py**: Checks GPU availability using PyTorch and TensorFlow.\n- **gpu_test_pytorch.py**: Checks GPU availability using PyTorch only.\n- **gpu_test_tf.py**: Checks GPU availability using TensorFlow only.\n\n## Usage\n\nTo check for GPU availability, run the appropriate script:\n\n- **For both PyTorch and TensorFlow:**\n  ```bash\n  python gpu_test.py\n  ```\n- **For PyTorch only:**\n  ```bash\n  python gpu_test_pytorch.py\n  ```\n- **For TensorFlow only:**\n  ```bash\n  python gpu_test_tf.py\n  ```\n\n## Output\n\nEach script will display the following information:\n\n- **PyTorch**: \n  - If CUDA is available.\n  - Number of CUDA devices.\n  - Name of the first CUDA device (if available).\n  \n- **TensorFlow**:\n  - Number of GPUs available (prefixed with `Num GPUs Available:`).\n\n## Requirements\n\nEnsure you have the necessary libraries installed. The scripts will notify you\nif either library is missing. Install them individually with:\n\n```bash\npip install torch tensorflow pytest\n```\n\n\n## Requirements\n\nEnsure you have the necessary libraries installed. The scripts will notify you\nif either library is missing. Install them individually with:\n\n```bash\npip install torch tensorflow pytest\n```\n\nAlternatively, install everything from the provided requirements file:\n\n```bash\npip install -r requirements.txt\n```\n\n## Testing\n\nThis project uses [pytest](https://pytest.org/) for its test suite. After\ninstalling the required packages, run:\n\n```bash\npytest\n```\n\nThis command executes the tests under the `tests` directory and verifies that\neach GPU detection script runs without errors.\n\n## Acknowledgments\n\nThanks to the open-source community for the tools and libraries used.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakileshjayakumar%2Fgpu-detection-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakileshjayakumar%2Fgpu-detection-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakileshjayakumar%2Fgpu-detection-scripts/lists"}