Skip to content

Conversation

@MasterJH5574
Copy link
Contributor

This PR introduces a new attribute for device backends: total_global_memory. This attributes returns the total available global memory on a device in bytes.

Tested locally on CUDA/ROCm/Metal/OpenCL:

>>> import tvm
>>> tvm.metal().total_global_memory
154618822656

This PR introduces a new attribute for device backends:
`total_global_memory`. This attributes returns the total available
global memory on a device in bytes.

Tested locally on CUDA/ROCm/Metal/OpenCL:
```python
>>> import tvm
>>> tvm.metal().total_global_memory
154618822656
```
@MasterJH5574 MasterJH5574 force-pushed the tvm-dev/2024-01-14-total-global-mem branch from d6c28fa to a5c2f34 Compare January 14, 2024 21:08
@tqchen tqchen merged commit a7dd32c into apache:main Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants