-
Notifications
You must be signed in to change notification settings - Fork 241
Closed
Labels
P1Medium priority - Should doMedium priority - Should docuda.coreEverything related to the cuda.core moduleEverything related to the cuda.core moduleenhancementAny code-related improvementsAny code-related improvements
Milestone
Description
Similar to #205 but for Device properties. Currently we return all of them at once, with the C enumerator names as the keys
cuda-python/cuda_core/cuda/core/experimental/_device.py
Lines 82 to 85 in 213baf4
| @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
Assignees
Labels
P1Medium priority - Should doMedium priority - Should docuda.coreEverything related to the cuda.core moduleEverything related to the cuda.core moduleenhancementAny code-related improvementsAny code-related improvements