Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: python -m zeus.show_env #119

Merged
merged 3 commits into from
Sep 9, 2024
Merged

Feat: python -m zeus.show_env #119

merged 3 commits into from
Sep 9, 2024

Conversation

jaywonchung
Copy link
Member

This adds an in-tree script show_env.py.

Users can run

$ python -m zeus.show_env

after installing Zeus with pip to understand whether Python packages and hardware (NVIDIA GPU, AMD GPU, Intel RAPL-supported CPU) are recognized.

@jaywonchung jaywonchung requested a review from wbjin September 9, 2024 20:46
zeus/show_env.py Outdated Show resolved Hide resolved
zeus/show_env.py Outdated Show resolved Hide resolved
@jaywonchung
Copy link
Member Author

@wbjin Thanks! Handled cases where things are missing. The following is on my laptop:

$ python -m zeus.show_env
================================================================================

Python version: 3.9.19

================================================================================

[2024-09-09 17:35:04,811] [zeus.utils.framework](framework.py:24) PyTorch with CUDA support is available.
[2024-09-09 17:35:04,811] [zeus.utils.framework](framework.py:45) JAX is not available

Package availability and versions:
  Zeus: 0.10.0
  PyTorch: 2.4.0 (without CUDA support)
  JAX: not available

================================================================================

[2024-09-09 17:35:04,811] [zeus.device.gpu.nvidia](nvidia.py:49) pynvml is available but could not initialize NVML: NVML Shared Library Not Found.
[2024-09-09 17:35:04,811] [zeus.device.gpu.amd](amd.py:42) amdsmi is not available.

GPU availability:
  No GPUs available.

================================================================================

[2024-09-09 17:35:04,811] [zeus.device.cpu.rapl](rapl.py:134) RAPL is not supported on this CPU.

CPU availability:
  No CPUs available.

================================================================================

@wbjin
Copy link
Collaborator

wbjin commented Sep 9, 2024

Works on my laptop and cloudlab as well!

@jaywonchung jaywonchung merged commit 941591d into master Sep 9, 2024
3 checks passed
@jaywonchung jaywonchung deleted the jw-show-env branch September 9, 2024 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants