Skip to content
This repository has been archived by the owner on Jun 30, 2024. It is now read-only.

What should a Pythonic GPU diagnostics library look like? #1

Open
mrocklin opened this issue Jan 17, 2019 · 2 comments
Open

What should a Pythonic GPU diagnostics library look like? #1

mrocklin opened this issue Jan 17, 2019 · 2 comments

Comments

@mrocklin
Copy link

I apologize for mis-using this github issue tracker @nicolargo . I wanted to have a public discussion on GitHub about Pythonic GPU diagnostic libraries and yours was the most relevant issue tracker that I found. I'm happy to move conversation elsewhere if desired. Also, thank you for porting this library to current Python.

That being said, this library has lots of functionality, but isn't particularly friendly for a typical Python user. It appears to be a faithful port of a C library both for good and bad.

Is there value to designing a new library that wrapped around this one and provided the same diagnostics but in a different way? If so, what thoughts do people have about API for that library?

cc @sklam @seibert @ogrisel @lesteve @beberg (please also ping others)

@sklam
Copy link

sklam commented Feb 8, 2019

Is there value to designing a new library that wrapped around this one and provided the same diagnostics but in a different way? If so, what thoughts do people have about API for that library?

I think adding some high-level APIs to do common diagnostic/query task can be useful. The py3nvml project has done some in https://github.com/fbcotter/py3nvml/blob/master/py3nvml/utils.py. An example would be a function to get the topology map of a system to determine how scheduling should be done. However, I don't know if there's a known list of common diagnostic functions.

@jakirkham
Copy link

FWIW I opened issue ( gpuopenanalytics/pynvml#2 ) to discuss the different Python NVML binding implementations that I found (including this one and the one @sklam points to).

At a bare minimum we can compare and contrast the differences. Better still if we can engage the various authors in this conversation. 🙂

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants