Skip to content

Make device properties prettier #210

@leofang

Description

@leofang

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.

Metadata

Metadata

Labels

P1Medium priority - Should docuda.coreEverything related to the cuda.core moduleenhancementAny code-related improvements

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions