ROCm / pyrsmi

python package of rocm-smi-lib
MIT License
18 stars 6 forks source link

What is the difference between pyrsmi and rocm_smi.py #10

Closed jcarranz97 closed 8 months ago

jcarranz97 commented 10 months ago

Wondering what is the difference between pyrsmi and rocm_smi.py .

younseojava commented 9 months ago

@jcarranz97 Thank you for your query. Assuming you're asking about python_smi_tools/rocm_smi.py, which is part of rocm_smi_lib, pyrsmi is based on the former but is more to be used in a Python project and imported as a package, while rom_smi_lib and rocm_smi.py is a CLI application and can be used as a standalone application. So, for applications in Python projects, CLI application will incur overhead of spawning a separate process, while pyrsmi function calls within Python will have much smaller overhead. Hope this clarifies.