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

Make device properties prettier #210

Open
leofang opened this issue Nov 1, 2024 · 1 comment
Open

Make device properties prettier #210

leofang opened this issue Nov 1, 2024 · 1 comment
Assignees
Labels
cuda.core Everything related to the cuda.core module enhancement Any code-related improvements P1 Medium priority - Should do

Comments

@leofang
Copy link
Member

leofang commented Nov 1, 2024

Similar to #205 but for Device properties. Currently we return all of them at once, with the C enumerator names as the keys

@property
def properties(self) -> dict:
# TODO: pythonize the key names
return handle_return(cudart.cudaGetDeviceProperties(self._id))

We should perhaps make the returned object a Python class instead of dict, with nice, pythonic attributes.

@leofang leofang added cuda.core Everything related to the cuda.core module enhancement Any code-related improvements P0 High priority - Must do! labels Nov 1, 2024
@leofang leofang added this to the cuda.core beta 2 milestone Nov 1, 2024
@leofang
Copy link
Member Author

leofang commented Nov 1, 2024

xref: our C++ counterpart (cudax) NVIDIA/cccl#2084

@leofang leofang added P1 Medium priority - Should do and removed P0 High priority - Must do! labels Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cuda.core Everything related to the cuda.core module enhancement Any code-related improvements P1 Medium priority - Should do
Projects
None yet
Development

No branches or pull requests

2 participants